Jump to content

Ingolme

Moderator
  • Posts

    14,901
  • Joined

  • Last visited

  • Days Won

    177

Everything posted by Ingolme

  1. First you need to break the file into lines. All your code is on one line.
  2. Text automatically wraps around floated elements, provided that the floated element occurs before the text in the HTML.
  3. Did you change your code in any way?
  4. If you don't want responsive then you really shouldn't be using Bootstrap. The whole purpose of Bootstrap is to be responsive.
  5. $hint gets a value because it's in a loop.
  6. Presentation refers to the visual appearance of the site, like colors, shapes, fonts and layout. There are three client-side languages: HTML for structure CSS for presentation Javascript for behavior By separating your code into these three languages your site becomes much easier to maintain. The only thing HTML is meant for is to provide a structure so that the CSS and Javascript may interact with it. It should describe the content that's in it, for example, <p> for paragraphs, <ul>, <ol> and <dl> for different types of lists, <section>, <article>, <aside> are all self-descriptive. Once you have an HTML structure you can use CSS selectors to change the appearance of the page.
  7. Ingolme

    random image

    Use the integer that mt_rand() returns as the index of the array.
  8. You need to access elements using other DOM methods, such as getElementsByTagName(), getElementById(), parentNode, childNodes and the rest. Read the HTML DOM tutorial here: http://www.w3schools.com/js/js_htmldom.asp Here's a simple example: <input id="centimeters">var centimeters = Number(document.getElementById("centimeters").value);alert(centimeters);
  9. They are HTTP codes, for a complete list, look here: http://www.w3schools.com/tags/ref_httpmessages.asp
  10. Using deprecated elements usually results in code that's harder to maintain. Imagine you're using the <center> tag on 20 pages and tomorrow you want the text to be left-aligned. In CSS, change one rule to "text-align: left". If you want to change the <center> tag you need to go through all 20 pages and remove it. HTML should not be used for presentation.
  11. Try this: footer{ background-color:black; color: white; text-align: center; line-height: 100px; height: 100px; width: 100%;}footer p { display: inline-block; vertical-align: middle;}
  12. It looks like some software on your phone is doing it. I see nothing wrong on my devices.
  13. I do think 000webhost supports PHP mail. Try it and see. I would recommend going through the W3Schools.com PHP tutorial if you haven't learned PHP yet.
  14. Well, that should work as long as you run it on a server with PHP enabled and a mailing service. You may need to customize the script.
  15. You need a server-side language such as PHP to send the mail. HTML alone can't do it.
  16. Ingolme

    Text over image

    Just make the image a background image.
  17. A missing semi-colon is one of the most common syntax errors. Even I make the mistake all the time, just get used to finding and fixing them while testing.
  18. You can use constants for the MySQL connection. All that matters is that the values are correct.
  19. Actually, the selector should be this since the <a> element is always the last element in its parent <li> .navbar-default .navbar-nav > li:last-child > a:after
  20. The :after selector creates a pseudo-element that acts as if it was inside the element it belongs to. If you don't want that you'll have to actually add the content to the page's HTML instead of using the :after selector You can use the :last-child selector to make the last link not have the vertical bar. .navbar-default .navbar-nav>li>a:last-child:after { content: "";}
  21. Not the plug-in's code, show the code you're using to add the plug-in onto your page. It should only be one or two lines of code, paste them into a forum post here.
  22. All PHP statements need to be separated by semi-colons. This would fix your problem: include "../xx/xxxx.php";
  23. Read about the different types of CSS selectors here: http://www.w3schools.com/css/css_selectors.asp The first one on that page is the element selector, which you already know, but the class and id selectors can be used to select specific elements.
  24. The content property only works with :before and :after selectors. So you would do it like this: navbar-default .navbar-nav>li>a:after { content: " | ";} You can change its color, font and all the rest with other CSS properties in the same selector.
×
×
  • Create New...