Ok, I'm working on this site ( <!-- m --><a class="postlink" href="http://telconstar.com/freedom">http://telconstar.com/freedom</a><!-- m --> ) and I have a horizontal black menu. In IE, it's aligned in the center, but in Firefox it's aligned to the left. I want it aligned to the left.
Now, I have a div around my entire body. I say <div style="align:center;">. This is so I can center my website in the center of the users screen. However, if I take off this outer div, then the horizontal menu is aligned left in both IE and Firefox. Of course, then the entire page moves to the left hand side.
How can I get my page aligned to the middle but that horizontal black menu aligned to the left in IE? Thanks.Put a proper doctype on it so IE will come out of quirks mode.How about an example of a proper doctype?<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">And be certain to run the resulting page through The Validator (<!-- m --><a class="postlink" href="http://validator.w3.org">http://validator.w3.org</a><!-- m -->).Wow, thanks for the help. Glad to see it was something so simple. I'll start adding my Doctype before I finish designing the page next time. Seems a bit obvious now that you mention it.
Now, I have a div around my entire body. I say <div style="align:center;">. This is so I can center my website in the center of the users screen. However, if I take off this outer div, then the horizontal menu is aligned left in both IE and Firefox. Of course, then the entire page moves to the left hand side.
How can I get my page aligned to the middle but that horizontal black menu aligned to the left in IE? Thanks.Put a proper doctype on it so IE will come out of quirks mode.How about an example of a proper doctype?<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">And be certain to run the resulting page through The Validator (<!-- m --><a class="postlink" href="http://validator.w3.org">http://validator.w3.org</a><!-- m -->).Wow, thanks for the help. Glad to see it was something so simple. I'll start adding my Doctype before I finish designing the page next time. Seems a bit obvious now that you mention it.