On 02/07/07, Josue Martinez [EMAIL PROTECTED] wrote:
Alan, the problem with that is that, at least as of a few years ago, IE6/Win
does not center the container with #container {margin: 0 auto;}, which is
why the text-align: center is applied to the body element.
Only in Quirks mode.
Date: Sat, 30 Jun 2007 14:32:26 -0700
From: Alan Gresley [EMAIL PROTECTED]
Subject: Re: [css-d] centering elements via margin: auto
. . . If the body had no text alignment (the default is text-align: left) then
you don't have to restate text-align: left on any element unless an ancestor
has
On 7/1/07, Michael Leibson [EMAIL PROTECTED] wrote:
Date: Sat, 30 Jun 2007 14:32:26 -0700
From: Alan Gresley [EMAIL PROTECTED]
Subject: Re: [css-d] centering elements via margin: auto
. . . If the body had no text alignment (the default is text-align: left)
then you don't have to restate
Thank-you, Josue, and also David, for your helpful replies.
I've come across this code before, but not - yet - in Eric's book (it's a
pretty dense study, for someone starting from scratch!). I gather that
{margin 0 refers to positioning, and (maybe) means the margin should be at
maximum
Leibson
Sent: Saturday, June 30, 2007 11:23 AM
To: Josue Martinez
Cc: css-d@lists.css-discuss.org
Subject: Re: [css-d] centering elements via margin: auto
Thank-you, Josue, and also David, for your helpful replies.
I've come across this code before, but not - yet - in Eric's book (it's a
pretty
On 28/06/07, Michael Leibson [EMAIL PROTECTED] wrote:
The resulting div was centered in Firefox 2, but was
aligned left in IE 6. I therefore deduce that even
IE6 won't accept auto margin centering -- am I
correct?
It will, but only in standards mode. In quirks mode there are work
arounds,
Hi;
I'm new to web-design and CSS, and am studying Eric's
. . . Definitive Guide, 2nd ed.. I have some
questions regarding the proper way to horizontally
center a block element:
On p.162, Eric writes: If both margins are set to
auto. . . then they are set to equal lengths, thus
centering the
If so, then here's my situation and question:
I want my div to be of fixed width (750px), and always
horizontally centered within the viewer's browser
canvas. However, I have no way of knowing the
viewer's display resolution, and therefore no way of
knowing the WIDTH of his browser