Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation since 02/25/2020 in Posts

  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. https://www.w3schools.com/code/tryit.asp?filename=GNVVBS9H7SVT
    1 point
  5. I recommend doing the tutorials in the order HTML > CSS > Javascript. If there's something you don't understand you can always come back to review it later. This kind of knowledge builds up gradually over time.
    1 point
  6. I haven't checked but they most likely use AJAX to load a piece of content from the database and populate a box with it. There is Javascript and server-side code involved, it's not exactly simple.
    1 point
  7. Sort of, but even stacking of elements will cause linebreak which is treated as space and therefore a alignment problem. You get a similar problem in using display: inline-block; it usually results in a gap following it.
    1 point
  8. its a vertical-align issue, of all the ones to give it, they give it one that give a space at bottom. many ways to fix it, change default vertical-align, display: block, for img, font-size: 0; line-height: 0; for parent.
    1 point
  9. No it is not found twice in the DB. Meanwhile I made a little search and what finally solved the issue is that intead of tracking keyup I used the input event...that solved it. Follows part of the event handler(JS) so you can understand what I am talking about. $('#search').on('input', function(e) { e.preventDefault(); var searchKeyword = $.trim($(this).val()); if(searchKeyword!=='') {//// tell me what you think...
    1 point
  10. ... and what it is all about and when to use it. I like it ...πŸ˜ƒ Sorry for my excitement, but I decided to bite the bullet and start building a website. More for practise at this stage. So I decided to look at CSS Responsive Web Design ... I liked that it uses HTML and CSS ... a good starting pointπŸ€” Anyway just thought I would share my excitement!😜🀠
    1 point
  11. 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
  12. The first slash is directory root for more subfolders before images folder.
    1 point
  13. 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
  14. It's not an array because you overwrote the array with an object of type "component" on this line: gameObstacle = new component(10, 200, "green", 300, 120);
    1 point
  15. Here's a Dec 2020 link that addresses you question about "working cross browser": https://developer.mozilla.org/en-US/docs/Learn/Tools_and_testing/Cross_browser_testing/Introduction Here's a quote that stuck out:
    1 point
  16. Give nav links specific class name as in .navlinks then try a:hover:not(.navlinks){ } Should work.
    1 point
  17. You need to add selector above inner curly brace.
    1 point
  18. 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
  19. Use window.open() to open a URL in a new tab.
    1 point
  20. <div class="navbar"> <a href="#home" class="bkcolor1">Home</a> <a href="#news" class="bkcolor2">News</a> <div class="dropdown"> <button class="dropbtn bkcolor3">Dropdown <i class="fa fa-caret-down"></i> </button> <div class="dropdown-content"> <a href="#" class="bkcolor4">Link 1</a> <a href="#" class="bkcolor5">Link 2</a> <a href="#" class="bkcolor6">Link 3</a> </div> </div> </div> .bkcolor1{background: "red";} .bkcolor2{ba
    1 point
  21. Personally, I don't like to follow trends. I evaluate each technology and determine whether it fulfills my needs or not.
    1 point
  22. Folks, Finally an experienced InDesign scripter helped me to find a solution that works perfectly πŸ‘ This is the correct JS syntax for text alignment in the specific table cell: curTable.columns[-2].cells.everyItem().texts.everyItem().justification = Justification.RIGHT_JUSTIFIED; The missing key was the relation to the cell itself. After adding the code the (horizontal) 'justification' property is working now. He also recommended an InDesign specific resource website providing a complete overview to other suitable commands / properties - here at the 'text' section: https:
    1 point
  23. 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
  24. 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
  25. Bootstrap uses !important A LOT! so you have to do the same and use this to overide bootstrap properties using !important.
    1 point
  26. Look into flex box layout, using display: flex;
    1 point
  27. If you are loading the file from another website, you have no way to know when it was last modified. To find out the modification time of a file, it has to be on your server. The ?ver=2.0 probably is just there so that older versions of the file are not loaded from the browser cache.
    1 point
  28. 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
  29. 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
  30. That is not the flex-grow property, it is the flex-basis property.
    1 point
  31. Usually a decent editor would highlight something like this, it would give you the ability to collapse these containers to identify misplaced opening or closing tags. You can also use W3C html validator.
    1 point
  32. Every anchor element requires a closing tag of </a>, which you have missed in the first unordered list items. So it seeps to envelope other elements.
    1 point
  33. 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
  34. 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
  35. It's just mismatched parentheses on this line: var days = Math.floor(distance % (1000 * 60 * 60 * 24 * 7)) / (1000 * 60 * 60 * 24)); Count the opening brackets and the closing brackets.
    1 point
  36. 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
  37. I'm not sure to what extent it will affect the page on mobile, but the lack of a <!DOCTYPE html> tag on your page forces browsers into outdated rendering modes. The mobile devices may have an issue with this as well.
    1 point
  38. The only option I can think of is mod_rewrite, you can make it create a url to you needs (within reason) but it will still go to original url in the background. Similar to a url with lots of query string http://example.com/index.php&page=dogs?type=greyhound Mod_rewrite can make the url address appear as http://example.com/dogs/greyhound If that's any help.
    1 point
  39. I don't how css can do that as its presentational, the most it can do is show text using :before and :after a link address. There is a base tag which would have the http domain and default root folder, you then must have relative paths without domain and root folder. https://www.w3schools.com/tags/tag_base.asp
    1 point
  40. 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
  41. </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
  42. I think you have to work from the last child instead of first
    1 point
  43. 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
  44. 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
  45. Oh no, Ingolme!!! It seems to be an interesting behaviour of window.getComputedStyle() and getPropertyValue("text-decoration") Its important to note, that the exercise checks for the existence of none inside this property value. On Firefox, when you've defined the text-decoration as none it actually removes the text-decoration-line(default: underline) and text-decoration-style(solid) keywords from the text-decoration property value. So you're only left with the text-decoration-color. Hence the process fails. On Chrome, text-decoration is property that seems to be directl
    1 point
  46. This maybe unhelpful but it is one of the reasons why I make all my own icons. I don't want to have to rely on 3rd party code because it opens up vulnerabilities in your website.
    1 point
  47. And all of the w3schools ad space is google powered, which only shows you what you've been looking at before that. If you do not like an ad, you can always report it in the corner of said ad if it says "powered by Google"
    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. Sweet! Well in that case, let's jump right in and tear yours to shreds. $you != "welcome"; That is a logical assertion, it's like saying true;or false;It doesn't do anything, in fact a spammer might just look at that and mock it! Instead of stating the obvious ($you are not equal to "welcome"), $you should be assigned to something. Instead of the string "welcome", how about a constant? What it means to be welcome doesn't change, so it would make sense to have it be a constant.$you = !WELCOME;you are not welcomeNow, about this database business. While it might be amusing to think about a
    1 point
×
×
  • Create New...