Re: [css-d] centering elements via margin: auto

2007-07-02 Thread David Dorward
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. http:/

Re: [css-d] centering elements via margin: auto

2007-07-01 Thread Josue Martinez
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-a

[css-d] centering elements via margin: auto

2007-07-01 Thread Michael Leibson
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 an

Re: [css-d] centering elements via margin: auto

2007-06-30 Thread Alan Gresley
Rick wrote: > Concerning the "body { text-align: center; }" CSS, it's true, if my > understanding is correct that all text in the body will be centered with > that code, but that's why the others recommended putting "text-align: left" > in the #container code. Since everything on the page will be

Re: [css-d] centering elements via margin: auto

2007-06-30 Thread Rick Faircloth
inal Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Michael 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 repli

Re: [css-d] centering elements via margin: auto

2007-06-30 Thread Michael Leibson
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 l

Re: [css-d] centering elements via margin: auto

2007-06-28 Thread David Dorward
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 aroun

Re: [css-d] centering elements via margin: auto

2007-06-28 Thread Josue Martinez
> > 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 brow

[css-d] centering elements via margin: auto

2007-06-28 Thread Michael Leibson
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