Jump to content

footer only centering after </body>?


paulmo

Recommended Posts

uh, all your HTML content should be between the <body> tags, not outside of it. You should post your code, it sounds like you're page isn't structured properly. It should go something like this:

<html/DTD><head>  <title></title>  //any links to external script or CSS files here</head><body>  All your web content</body></html>

Link to comment
Share on other sites

By "header tag" do you mean <head> or <div id='header'>?You can't have any content outside of the body tags.EDIT:Gah, too slow. :)@thescientist:Doesn't the doctype need to be the first thing in the document? Ie,<doctype><html><head><title></title></head>.....

Link to comment
Share on other sites

Fun HTML fact, you don't need the opening HTML tag if you have a DOCTYPE markup declaration. If you like to write in a, uh, formal XML-like fashion, though, it's probably better to have the opening HTML tag in there anyway.

Link to comment
Share on other sites

By "header tag" do you mean <head> or <div id='header'>?You can't have any content outside of the body tags.EDIT:Gah, too slow. :)@thescientist:Doesn't the doctype need to be the first thing in the document? Ie,<doctype><html><head><title></title></head>.....
Fun HTML fact, you don't need the opening HTML tag if you have a DOCTYPE markup declaration. If you like to write in a, uh, formal XML-like fashion, though, it's probably better to have the opening HTML tag in there anyway.
I'm pretty sure all three of is have had this same conversation before at one point. :)
Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...