Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation since 10/20/2019 in all areas

  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. See if you can modify this to your needs... <!DOCTYPE html> <html> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta name="viewport" id="viewport" content="target-densitydpi=high-dpi,initial-scale=1.0,user-scalable=no" /> <title>Multi-Modals</title> <!-- <link rel="stylesheet" href="http://www.w3schools.com/lib/w3.css"> <!-- // optional --> <!-- From: http://w3schools.invisionzone.com/topic/55976-multiple-modal-boxes-on-webpage/ For: https://w3schools.invisionzone.com/topic/61800-html-or-js-problem/ --&
    1 point
  5. 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
  6. 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
  7. 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
  8. Bootstrap uses !important A LOT! so you have to do the same and use this to overide bootstrap properties using !important.
    1 point
  9. Look into flex box layout, using display: flex;
    1 point
  10. 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
  11. 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
  12. 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
  13. 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
  14. https://www.w3schools.com/html/html_links_bookmarks.asp
    1 point
  15. If this object is wrapped in an <a> tag, use CSS to set the text-decoration of that link to "none".
    1 point
  16. 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
  17. You might need to upgrade your version of Edge. The <details> tag is not supported in versions prior to 79.
    1 point
  18. Surprisingly, we get people putting their usernames as a topic title quite frequently. I don't know why.
    1 point
  19. You should go through the effort of learning PHP rather than asking people to write code for you. Most of us have jobs and can't spend the time writing code if we're not getting paid for it, but just to illustrate my previous post, I'll write the code for this example. <?php if($_SERVER['REQUEST_METHOD'] == 'POST') { $data = [ 'tag' => implode(',', $_POST['txt']), 'year' => $_POST['year'], 'month' => $_POST['month'], 'day' => $_POST['day'], 's' => $_POST['s'] ]; $target = 'http://test.com/class/category-photography/?' . http_build_query(
    1 point
  20. 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
  21. I'm not sure why this is in the HTML tutorial. These are Javascript APIs, not HTML APIs. In this context, the browser itself is the provider and your Javascript code is the client. The API is the interface through which you request data or a service from the browser.
    1 point
  22. 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
  23. 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
  24. 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
  25. As far as I can make out reading the post made, he wants the opposite.
    1 point
  26. 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
  27. </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
  28. 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
  29. 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
  30. 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
  31. 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
  32. 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
  33. 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
  34. You can use an internet address as the src attribute of the iframe and it will work without any problem. If you write HTML between the iframe tags, that won't work. The browser ignores it. I'm referring to code like this: <iframe> <table> <tr> <td>...</td> <td>...</td> <td>...</td> </tr> </table> </iframe> That table gets ignored, the only thing that gets shown in the iframe is whatever is in its src attribute.
    1 point
  35. 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
  36. I can stick around for a while Roddy. Just grabbed lunch(Oh New Zealand time) so I'm quite clear for the next few hours.
    1 point
  37. position: fixed takes the element out of the flow of other elements, other elements will occupy the space it would have occupied, so you need to add padding the same height as the w3--top element to force it back into view.
    1 point
  38. 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
  39. It's a "feature" built into iPhone browsers. If you make sure that the font size of the text inside your inputs is at least 16px then iPhone won't try to zoom in to see it.
    1 point
  40. Does using width: 100vw; make a difference? Then make input width proportional in vw also.
    1 point
  41. Yes. Use CSS to set the border width to 0 or the border style to "none"
    1 point
  42. Try wrapping this in an if statement that tests for string length: $var = 7; echo sprintf('%02d', $var);
    1 point
  43. I have come this far: http://w3webseiten.eu/ What is missing is the menu getting to (display:none), the moment the width gets medium or small. [edit] Of cause, mediaqueries . . . Now I will make the menu get over the content, then I am at the same point that the examples had I used before where the menu is positioned fixed. Putting the problem in words is a part of the solution! regards.
    1 point
  44. 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
  45. Images are inline by default. All inline elements are placed at the text baseline. There is always a bit of space reserved below the baseline, which is for hanging letters like "g" or "y", and you see this space below the image. In order to fix this, you can either make the image a block, or set its vertical align to "middle".
    1 point
  46. $display= overwrites the prev output, you need to append to prev output with $display.=
    1 point
  47. The first line always reset it on every reload, you only need that to happen when it has not already been set and is empty. Also the JavaScript code needs to below any element it references as the page is rendered from top to bottom, the jS code is executed before the elements it is referencing even exist producing undefined error. You are overthinking this, all you need do is set localStorage.fontsize=1; or localstorage.fontsize=2; and so on... On click event it should increment a variable on each click then reset if greater than 3 the use if conditions n++;
    1 point
  48. please make w3School Channel on youtube
    1 point
  49. Full Web Server PackagesWhen you first start dealing with a web server, you'll likely find it somewhat hard to install and configure all of the popular "extra" components of your setup. This includes for example PHP or MySQL. The following packages include the Apache web server, along with PHP, MySQL, and often also include some other extras that you'll eventually need.You have to install only ONE of these packages - the overlapping stuff they contain will surely create problems if you try to have multiple packages at a time, or try to install a component they contain separately. It doesn't re
    1 point
  50. 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
×
×
  • Create New...