Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation since 12/03/2019 in Posts

  1. 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
  2. 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
  3. Use flex box <!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>Document Title</title> <meta name="description" content=""> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="author" content=""> <!--<link rel="stylesheet" href="css/styles.css?v=1.0"> --> <style> *{box-sizing: border-box;} .layout-wrap { display: flex; min-height: calc(1px + 40vw);} .layout-col1{ display: flex; flex: 1 1 100%; max-width: 40%;} .layout-col2{display: flex; flex: 1 1 100%; max-w
    2 points
  4. Create a custom.css file. place your css code in there, and place link to that! below w3.css link, is the best option. Anything that exists in w3.ccs will be overridden by the same css in custom.css file, CSS = cascading style sheet. If you two identical selectors .selector { color: red;} .selector { color: blue;} The last one will always take precedence over previous. The same will happen if these were placed separately in css files, the selector in the css file link below previous will take precedence.
    1 point
  5. 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
  6. is that's what do you mean https://www.w3schools.com/html/tryit.asp?filename=tryhtml_images_background7
    1 point
  7. 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
  8. 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
  9. 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
    1 point
  10. 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
  11. <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
  12. Personally, I don't like to follow trends. I evaluate each technology and determine whether it fulfills my needs or not.
    1 point
  13. 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
  14. 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
  15. Hi, I have been working on the design of this website https://www.mockofun.com and I would really like some constructive criticism. What do you think about the logo, the blue & orange color combination, the fonts, etc? Do you think the design is too busy? Thank you in advance!
    1 point
  16. 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
  17. Bootstrap uses !important A LOT! so you have to do the same and use this to overide bootstrap properties using !important.
    1 point
  18. 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
  19. https://www.w3schools.com/html/html_links_bookmarks.asp
    1 point
  20. If this object is wrapped in an <a> tag, use CSS to set the text-decoration of that link to "none".
    1 point
  21. 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
  22. Surprisingly, we get people putting their usernames as a topic title quite frequently. I don't know why.
    1 point
  23. 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
  24. 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
  25. 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
  26. 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
  27. 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
  28. As far as I can make out reading the post made, he wants the opposite.
    1 point
  29. 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
  30. </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
  31. I think you have to work from the last child instead of first
    1 point
  32. 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
  33. 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
  34. because there is no such thing as border: bottom; color, style and width is what you need to set, that is not recognised, so reverts to default.
    1 point
  35. 1 point
  36. 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
  37. 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
  38. The flags are wrapped in <div> tags, so they're blocks and force adjacent content to the next line. It's easy to fix. All of these divs have a class "svg-flag", so you can just display them as inline blocks. You can add vertical-align to better align them with the text. .svg-flag { display: inline-block; vertical-align: middle; }
    1 point
  39. Thank you, Funci, for your very hard effort. Together we nailed the source of the problem. And, thank you, Ingolme, for providing the solution. Once again, I wish Ingolme, Funci, Dsonesuk, and everyone else at W3Schools a very Happy New Year! Roddy
    1 point
  40. Try using this way : <button onclick = "someFunction()">Button</button> Else you can even try : <button class="someFunction">button</button> <script> $(".someFunction").click(function(){ alert("This is a function"); }); </script>
    1 point
  41. Attribute autocomplete="off" https://www.w3schools.com/tags/att_input_autocomplete.asp https://www.w3schools.com/tags/tryit.asp?filename=tryhtml5_input_autocomplete
    1 point
  42. Are you sure this isn't just your browser's auto-fill? Like this 'tooltip' only includes what you've previously written into similar fields?
    1 point
  43. URLs in external stylesheets are relative to the location of the stylesheet itself rather than the page. I can't tell if this is your problem or not since I don't know if your CSS is in an external stylesheet.
    1 point
  44. If you truly have that many followers on those websites and are the director of technology at your company, you should take caution before taking such rash actions because your reputation is on the line. A majority of the people are going to look at what you're saying and conclude that you are an unreasonable person as you're complaining about something that is completely outside of the control of W3Schools.
    1 point
  45. 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
  46. 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
  47. 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
  48. PM or Personal Messages (Not allways personal )Are messages sent by a forum member to another forum member where no one else can read them.For example if i had a percific problem i could PM a spercific member of the forum to help me with that!To PM click on the username of the member...and on there profile select "Send a Personal message"TA DAHope that helped!!Welcome to the forum... (im new-ish too)
    1 point
  49. LOL :)At that age, you're untouchable...
    1 point
×
×
  • Create New...