Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation since 01/22/2020 in all areas

  1. Hi All! I'm the coding projects manager at [link removed] and I'm very thrilled with W3Schools' latest developments. These signed-in learning paths and forums are great! I'm from New York, and Ruby on Rails is what I/we code with the most. But I'm excited to be learning more here at W3Schools. If any of you are interested, we have a bustling and supportive coding community at [link removed] --- we are the world's first not-for-profit social media community, where we help our members worldwide DIVE for their big BREAKs in life. I hope you'll come check it out--not only are we always
    2 points
  2. That was the days of html4 with strict doctype no longer supporting it, it was my main gripe as there was not cross browser support for anything else similar, so you had to use transitional doctype which allowed iframes. Then whoever realised what a major blunder they made, and it was resupported in html5
    2 points
  3. You should call exit or die any time you're redirecting a user to prevent the code from executing any of the instructions that are further down. Nothing about the header() function tells the code to stop executing. header('Location: /Logon/Logon.php?From=Home'); exit;
    2 points
  4. In this context, I mean start writing code especially for reasons that interest you! The bigger the variety of ideas you try to write code for, the more valuable your code skills will be to you and the people that will want to hire you. Speaking for myself, the key to becoming confident as a coder is the willingness to make mistakes. Lots and lots of mistakes. It's just as easy for you to produce challenging, mistake producing code situations, as it is for employers. So, don't wait around for some one to hand you a job. Make one for yourself and be willing to tackle lots of mistakes. Ma
    1 point
  5. Here you can be welcomed to the forum. Just introduce yourself, so we can get to know everyone better. This is not a place for questions, so keep that in mind. My name is Chocolate570 and I am a moderator of this forum. You can PM me any concerns RELATED to this forum. What about you? ~Chocolate570This has not been stickied for a reason. If I see alot of replies, then i'll sticky it. Otherwise, it'll just occupy more space in the pinned section.
    1 point
  6. The first slash usually represents the root directory or domain name that is directed to that directory, images is a folder within that root directory and then the image within that images folder.
    1 point
  7. Hi. I was wondering is you could make a dark mode for the entire w3schools, like how you did it for the tryit editor. That would be really cool thanks!
    1 point
  8. Which safari? Windows?, ignore they stopped supporting safari for windows ages ago.
    1 point
  9. /*This refers to browser viewport width*/ @media screen and (max-width: 575px) { /*this should refer to a selector of element/s, class/s, id name to apply style display block, as you normally would ie*/ div, .classname, #idname{ display: block; } }
    1 point
  10. The W3c god says your html, css is invalid and not to to his standards, so unless you produce valid coding, he says to cast your code out! until properly validated. For who is to say that, this! is the reason you are troubled by failure. Sayeth W3c the true lord of all things web, please read link https://www.w3.org/standards/webdesign/htmlcss
    1 point
  11. I suggest using the object-fit Property https://www.w3schools.com/css/css3_object-fit.asp div{width:390px;height:280px; overflow:hidden; /*background-color: #ccc; */} div img {max-width: 100%;max-height:100%; height:100%;width: 100%; object-fit: cover; } https://www.w3schools.com/code/tryit.asp?filename=GKO6RUZSK2W5
    1 point
  12. Hi Hema, Ah thank you so much! This is EXACTLY what I was looking for. I really appreciate your time, helpfulness and speed of response to help me today. Thank you. Kind regards, Mike
    1 point
  13. Because i still didn't get what do you mean well, could you take a look at the link below, and tell me whether is has what you're looking for or not https://www.w3schools.com/html/html_images_picture.asp
    1 point
  14. The more general solution would be to have a string containing the name of the method and use the square brackets notation to access it. var methodName = "toUpperCase"; var str = "Hello World!"; var result = str[methodName](); This solution only works with methods that don't take arguments, of course.
    1 point
  15. Use window.open() to open a URL in a new tab.
    1 point
  16. 1 point
  17. Hi! item is a function, not an object, so you must call it: linkElements.item(i).setAttribute("target", "_self") By the way, getElementsByTagName returns HTMLCollection and you can get single item also in this way: linkElements[i].setAttribute("target", "_self") Finally, you incorrectly compare whether the target equals _blank. You used "=" which means you are assigning this value. You must use "==" or "===" operator. Please refer to the MDN documentation. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Strict_equality https://developer.mozi
    1 point
  18. If you have multiple elements, you have to call the function multiple times. It could be done in a loop. var elements = document.getElementsByClassName("myClass"); for(var i = 0; i < elements.length; i++) { w3CodeColor(elements[i]); }
    1 point
  19. Hey, Nice idea. Though design looks a bit outdated. Icon for a trash can should be more obvious, plus usually when you point to any element (button/icon) there's usually text that pops up like "edit", "delete". It took me a few seconds to realize that the trapeze is a trash can. Though everything should be clear at once - good for user experience.
    1 point
  20. YES! Your stylesheet should always follow bootstrap, check an element through web development tools F12, check elements for bootstrap styling, make note of bootstrap selector, style how you want it and if required add !important. Web developer will let you edit stylesheet live, without actually changing anything, therefore you changr, turn off the styling until you get result you require, it even list the changes you have made to achieve that result, although you have to enable it first.
    1 point
  21. Bootstrap uses !important A LOT! so you have to do the same and use this to overide bootstrap properties using !important.
    1 point
  22. Not in an easy way. I'd start by looking for APIs offered by your mail server. Some APIs are through HTTP, but some are through the IMAP protocol.
    1 point
  23. The issue is that you should not have an <ol> tag as a direct child of another <ol> tag. It runs into an <ol> and stops counting there. Your structure should look like this: <ol> <li>text</li> <li>text</li> <li>text <!-- ol element wrapped in this li --> <ol> <li>text</li> <li>text <ol> <li>text</li> <li>text</li> <li>text</li> </ol> </li> <li>text</li> <
    1 point
  24. That's not a tutorial, it is a reference page. References provide technical details about a function for somebody who already knows how to use functions. The reference expects your code to have access to a getID3 object, which does not appear in the reference manual, so it probably is an external resource. If you just want to know when a file was modified, PHP has a built in function filemtime() which returns a UNIX timestamp. the date() function can turn the UNIX timestamp into a meaningful string.
    1 point
  25. I have little experience with TypeScript, but I assume that TypeScript would have shown you an error if you had tried to call add() with a string before converting it to plain Javascript. If you are using TypeScript, you should write all of your code in TypeScript rather than converting to Javascript and then writing more code. I expect it will handle type checking as long as you are working in the TypeScript environment.
    1 point
  26. CSS cannot obtain metadata from files. Even Javascript cannot do that, you would need a server-side language to get that information and display it on the page.
    1 point
  27. Give it a id ref use that id ref in document.getElementById() and style it how you want. It will add style="display: inline;" (if you styled it as inline) being inline to the element it will have a higher precedence over styling created in css stylesheet UNLESS you used !important with it. using document.getElementById("elementsid").style.display="initial"; should also revert to elements default display value.
    1 point
  28. https://www.w3schools.com/html/html_links_bookmarks.asp
    1 point
  29. Surprisingly, we get people putting their usernames as a topic title quite frequently. I don't know why.
    1 point
  30. Looking into this more When you want to delete all active classes they must be to current siblings() or parent() then move to sibling (.tabs) with next() to remove/add class $(this).siblings().removeClass("active"); $(this).parent().next().find("li").removeClass("active"); To add $(this).addClass("active"); $(this).parent().next().find("li").eq(tabNum).addClass("active");
    1 point
  31. I would do complete removal of 'active' class from both tabs and tabss if they exist or not. Get index of currently clicked and apply 'active' to .eq(indexref) of .tabs, then 'active' to $(this) currently clicked for .tabss. No if condition, No css nth-child, never used this? find that .eq() better suited. If this is what i think you are attempting.
    1 point
  32. The problem is the semi-colon at the end of your if() statement on line 13. Your syntax highlighter has been kind enough to underline it in green to indicate that you probably don't want it there.
    1 point
  33. All those new Javascript features are just syntactical sugar. Since they don't do anything particularly useful besides that, I generally don't use them since I prefer my websites to be accessible to the widest range of people. Now if Javascript introduced something useful like strict typing or passing primitive values by reference I'd be more in favor of pushing for new versions of Javascript.
    1 point
  34. I am unclear of your request, so this is just an attempt toward a solution. First, move the height and width definitions in the <img> tags to the CSS section. Also, be consistent in using the 'px' notation which is not used in the tag portions. Second, change .myDIV:hover + .hide { to .myDIV:hover .hide { to get the effect I think you desire. Finally, I don't know what is to happen with the displays of the first and last <div> elements. You hide the second with the '.hide' class, but you show the first when you don't have any definition to hi
    1 point
  35. I see. You will need some special logic to run between Thursday and Saturday. It will use 60 hours but only after 12pm on Thursday. var THURSDAY = 4; var minDate = new Date(); var offset = 36; if(minDate.getDay() > THURSDAY || minDate.getDay() == THURSDAY && minDate.getHours() >= 12) { // Add 60 hours instead of 36 after noon on Thursday offset = 60; } minDate.setHours(minDate.getHours() + offset);
    1 point
  36. Instead of grid, you could use flex box and set align-items to stretch. .wrapper { display: flex; align-items: stretch; } .sidebar { background-color: green; width: 10%; flex: 1 1 auto; } .archive-loop { background-color: red; width: 70%; flex: 1 1 auto; }
    1 point
  37. It's a pseudo-element because a new element is created wrapped around the selected text. A pseudo-class is when a class is added to an existing element under certain circumstances.
    1 point
  38. </pre> <table> var child = myImgs.children; //alert(child.src); myImgs.insertBefore(child[0],child[child.length-1]); myImgs.removeChild(child.length-1); } </table> <p> </p><p
    1 point
  39. Only the content inside the loop is repeated. This is what the string looks like on each iteration of the loop: text = "<ul>"; "<ul>" text += "<li>" + fruits[i] + "</li>"; "<ul><li>Banana</li>" text += "<li>" + fruits[i] + "</li>"; "<ul><li>Banana</li><li>Orange</li>" text += "<li>" + fruits[i] + "</li>"; "<ul><li>Banana</li><li>Orange</li><li>Apple</li>" text += "<li>" + fruits[i] + "</li>"; "<ul><li>Banana</li><
    1 point
  40. I'll be rolling through the tutorials and have a specific question about a tutorial. It'd be cool if I could click a button that sends me here that sits next to every "try it". It looks like the "try it editors" have unique links. So right on this form, below title, submit the URL from the tutorial you have a question about. Eventually, there would be enough "tags" relating to the questions where the forum will just spit back previous questions about the tutorial when new users click from the tutorial "help" button.
    1 point
  41. If you have a Content Management System (CMS), you will have to find or create a plug-in for the CMS that does that. If you don't have a CMS and there's no system for dynamically creating pages on your site then the sitemap will have to be created manually. Without knowing more about your website's back end I can't give a clear answer.
    1 point
  42. You can add overflow to the w3-dropdown-content class and give it a max-height in order to cause the scrolling. On mobile devices, arranging the links into columns would likely get outside of the screen horizontally.
    1 point
  43. 1 point
  44. Google Chrome has just started warning me that by using W3Schools formatting facilities and Font Awesome Icons in my site, cookies are being attached to all uses of my page. Not only is this practice odious in itself, it is illegal in Europe, and THE FACT WAS NOT DISCLOSED BY W3SCHOOLS EITHER IN ITS ADVERTISEMENT FOR ITS FORMATTING TOOLS OR IN ITS ENDORSEMENT OF FONT AWESOME! A web check revealed no easy way of turning off those cookies, so now I am going to find replacement icons and do the work of removing these libraries by hand. This will not be an easy task as shown by the attached i
    1 point
  45. Whether I agree with you or not, this isn't a place for politics, it's a place of learning and you should feel privileged that you are able to join a place such as this which offers FREE advice! I suspect your "blacklisting" of this redound website will have zero effect on its future. Goodbye!
    1 point
  46. If you understood, then you would be doing it correctly. Please stop to read carefully, I've explained it very clearly. The link (or button) needs an href attribute. That attribute has a URL pointing to the page and position to which you want to go. The hash is the important part of the URL. You can call it "bottom", or "end" or "anything", it doesn't matter what you call it, it's just an identifier for a part of the page. Here's your button: <a class="button hexagon" href="#abcdefg">Chcete se dozvědět více?</a> This piece of code has to be at the very end of your c
    1 point
  47. URLs have the following components: http://www.example.com/path/file.html?a=value#target http:// Protocol: Tells the browser how to communicate with the server. www.example.com Host name: Tells the browser where on the internet to go. /path/file.html Path: Tells the server what file was requested. ?a=value Query string: Tells the server what information is requested. #target Hash: Tells the browser where on the page to go The component we're dealing with here is the hash. When you click on a link with a hash in it (<a href="page.html#something">) it scrolls you down to the e
    1 point
  48. Apache resourcesThe "Apache HTTP Server" (often called just "Apache" for short, though technically, "Apache" are the creators of the program, not the program itself) is the most popular web server today, and is the one bundled with most of the packages above. One of the reasons it's favored over competing products like Microsoft's IIS web server is because it's open source software, and can therefore be made (i.e. be compiled) to run on a large range of operating systems, not just Windows. Any Apache related documentation you can find anywhere, you can try to apply on any package that contains
    1 point
  49. LOL :)At that age, you're untouchable...
    1 point
×
×
  • Create New...