Jump to content

Ingolme

Moderator
  • Posts

    14,901
  • Joined

  • Last visited

  • Days Won

    177

Everything posted by Ingolme

  1. I don't know what your HTML or CSS looks like, but usually you need to apply clear: left to the elements that should always be on the left side of the screen.
  2. W3Schools created the forum and they're paying for its hosting costs. They just rarely visit.
  3. CSS doesn't have a mechanism to do that, but you could look into CSS precompilers like LESS or SASS which include a lot of functionality to organize CSS development. I would not suggest littering your HTML with class names that describe what the element should look like. You should use the class names to describe what the element is or what kind of content it contains.
  4. Can you show the actual page that has the problem instead of linking to the code?
  5. Ingolme

    Site Width

    Since almost everybody browses with mobile devices today you have no choice but to make your site fit screens as small as 320px wide. You should research responsive design. It's a technique to make web pages adapt their layout to all different screen sizes if done properly.
  6. You should not need the .xml extension. What happens when you open the file in your browser?
  7. SSL is client side encryption, except that you're letting the browser handle it which leaves no room for error. You should have an SSL certificate if you're sending sensitive data. Javascript is not always available and there's a lot of room for error if you attempted to do encryption with it. SHA 256 is not encryption, it's a hashing algorithm, which means the original data is lost. You should be doing that on the server-side right before saving the password to the database.
  8. Since he's loading from a CDN is would take very little effort to update Bootstrap to a more functional version.
  9. I think this might be a result of doing all the queries at the same time. There's another problem with that query: If it worked as it's supposed to, every time you run it a new copy of every single row of dewey, huey and lewey will be made on uncledonald. Assuming you're passing letters of the alphabet, the first time you run the code the deweysays column would have these values: A The second time it would look like this: A, A, B. The third time would be: A, A, B, A, B, C. and then: A, A, B, A, B, C, A, B, C, D If what you actually want is the values you just inserted then you should be passing the POST data straight to the uncledonald queries. For efficiency, you probably should be doing it all in the same query: INSERT INTO uncledonald (deweysays, hueysays, leweysays) VALUES ('{$_POST['deweyspeak']}', '{$_POST['hueyspeak']}', '{$_POST['leweyspeak']}' If you actually need to copy the values from the tables because the POST variables are no longer available you need to have the ID of the row you want to copy the values from. INSERT INTO uncledonald (deweysays) SELECT deweysays FROM dewey WHERE lot_id = 500 Usually this ID can be obtained using the mysqli_insert_id() function, but if you can get the ID from that function then the original POST values should still be available.
  10. The file is saved as UTF-8 with a Byte-Order Mark. There are actually three invisible characters being sent before the header. You should open the file in a text editor and change the encoding to be UTF-8 without BOM.
  11. You only need to make a topic in one of the forums. You can continue discussion here: http://w3schools.invisionzone.com/index.php?showtopic=54945
  12. You could just leave the extension as .php. As long as the content-type header is set to text/xml it should still be interpretted as XML by the browser. If you really need the extension to be .xml, the AddType directive should probably work, what happened when you tried it?
  13. I don't need to be ignorant of something to dislike it, I've had to work with bootstrap for clients before. It would be foolish to dislike something without knowing what it is first. I also am familiar with HTML 3.2 and have the skills to build a site with it if it was necessary, that does not mean I like it. I did not check what version of bootstrap he was using, that's quite an old version, I did not expect any sites to still be using that today.
  14. It's supposed to go below the side menu. Mobile screens are too small to fit both of them side by side. Use a media query to only display them like that on mobile devices.
  15. http://getbootstrap.com/css/#grid The current version of bootstrap has the container > row > col hierarchy. That's not me, that's how bootstrap 3 works.
  16. I don't understand your question. What is the exact set of rules you want the program to follow?
  17. I didn't memorize the class name for it but it doesn't really matter, I would certainly check the reference if I were actually using bootstrap. I don't see why you insist on doing things the opposite way the bootstrap documentation says.
  18. Bootstrap in general is a bad idea, but if you're using it you might as well use it as they intended it to be used. That means you must have a parent "container" or "fluid-container", inside that you need a "row" and inside the row you use "col-*" classes. The row applies a negative margin which is equal to the padding provided by the container.
  19. Use a media query to set #subnav width to "auto" and float to "none". In the same media query set #content width to "auto" and float to "none" On mobile devices you cannot have your site divided into columns, everything must be stacked vertically to be responsive.
  20. It looks like you're using bootstrap. If you're using the col-* classes they need to be wrapped in an element with a row class because the col-* classes add a float property to the element and floated elements aren't taken into account when determining the height of their parent. That results in the parent having no height, so the background color is not visible. The other thing I noticed on your page is that both Very-Top2 and the elements that follow it have a white background, so you won't notice anything until you change the background color of one of the other elements so that there's something to contrast it to.
  21. You create a form: http://www.w3schools.com/php/php_forms.asp And then pass the data to PHP's mail function: http://www.w3schools.com/php/func_mail_mail.asp
  22. You won't find any tutorial explaining how to make that particular design. You're supposed to be able to build this using your understanding of HTML and CSS. In the CSS tutorial look up margins, padding, float, clear, positioning. If you have not even been able to begin this test then you still have a lot of learning to do.
  23. You need to use the comparison operator "==" in your if() statements rather than the assignment operator "=". if (Prop_Type == 1) {
  24. You can add as much content to the innerHTML property as you want. What have you tried?
  25. That depends on what is inside the element. If it's empty, there will be no white background. If all the elements inside it are floated or with absolute position then there won't be a white background either.
×
×
  • Create New...