By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,738 Members | 1,080 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,738 IT Pros & Developers. It's quick & easy.

OK, why isn't this div centering in IE6?

P: n/a
This page looks great in Netscape 7, but it simply will not center the
bottom <div> in IE6:

http://www.lawtonfineart.com/index3.htm

I want the bottom <div> to be centered beneath the graphics, although
the text contained within it should be left aligned. Currently, I have
this in my CSS for the div:

width: 609px;
margin-left: auto;
margin-right: auto;

I've done some research online about this issue and I've tried some of
the workarounds (such as nested divs, one with auto margins and the
other with text set to be left-aligned), but nothing has worked. Can
someone please tell me how to get the same look in IE 6 (and versions
5.x) as what I have in Netscape 7?

And what on earth is this talk of "standards-compliant" mode in IE 6?
I regularly patch my machine with updates from Microsoft, so I'm
fairly confident that I have the latest version of IE. But where on
earth does one turn on "standards-compliant" mode? Is it "on" by
default? If not, how do they expect the average user to switch into
"standards-compliant" mode?! Grrr-r-r-r.

Exasperated and fed up with these inconsistencies,
-M
Jul 20 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
Mercury Mercurius wrote:
This page looks great in Netscape 7, but it simply will not center the
bottom <div> in IE6:

http://www.lawtonfineart.com/index3.htm
See http://dorward.me.uk/www/centre/#ie

You have pushed MSIE in to Quirks (AKA Make the same stupid mistakes as IE
5) Mode with your XML Prolog.
And what on earth is this talk of "standards-compliant" mode in IE 6?
I regularly patch my machine with updates from Microsoft, so I'm
fairly confident that I have the latest version of IE. But where on
earth does one turn on "standards-compliant" mode? Is it "on" by
default? If not, how do they expect the average user to switch into
"standards-compliant" mode?! Grrr-r-r-r.


The above URI has links to explanations of standards and quirks mode.

--
David Dorward <http://dorward.me.uk/>
Jul 20 '05 #2

P: n/a
Els


Mercury Mercurius wrote:
This page looks great in Netscape 7, but it simply will not center the
bottom <div> in IE6:

http://www.lawtonfineart.com/index3.htm


Another thing to fix:
You have absolute positioned the footer at 80% from the top.
But this way, when the window isn't all that high, the
footer comes up in de middle of the page, as 80% isn't 80%
of the document, but of the browser window. And, when you
scroll the page up, the footer will go up as well, until you
resize the window. Not pretty.
To avoid: have it relatively positioned, left:0px, This way
it will still be at the bottom, but go with the page, not
with the window.

--
Els

Mente humana é como pára-quedas; funciona melhor aberta.

Jul 20 '05 #3

P: n/a
David Dorward <do*****@yahoo.com> wrote:
The above URI has links to explanations of standards and quirks mode.


If the URL pointed to a real document, what would the following doctype
trigger?
<!DOCTYPE HTML SYSTEM "http://www.example.com/my401.dtd">

--
Michael Wilcox
mjwilco at yahoo dot com
Essential Tools for the Web Developer - http://mikewilcox.t35.com
Jul 20 '05 #4

P: n/a
David,
Thank you for your help. The information solved the problem.
-M

David Dorward <do*****@yahoo.com> wrote in message news:<c0*******************@news.demon.co.uk>...
Mercury Mercurius wrote:
This page looks great in Netscape 7, but it simply will not center the
bottom <div> in IE6:

http://www.lawtonfineart.com/index3.htm


See http://dorward.me.uk/www/centre/#ie

You have pushed MSIE in to Quirks (AKA Make the same stupid mistakes as IE
5) Mode with your XML Prolog.
And what on earth is this talk of "standards-compliant" mode in IE 6?
I regularly patch my machine with updates from Microsoft, so I'm
fairly confident that I have the latest version of IE. But where on
earth does one turn on "standards-compliant" mode? Is it "on" by
default? If not, how do they expect the average user to switch into
"standards-compliant" mode?! Grrr-r-r-r.


The above URI has links to explanations of standards and quirks mode.

Jul 20 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.