Actually, he has it right. Older versions of IE require that the content you
want centered be 'wrapped' in a another div/block.

On 2/4/07, Andrew Krespanis <[EMAIL PROTECTED]> wrote:

Yes, text-align:center will do the trick for old IE, but from the
looks of it you've added text-align:center; to the element you want
centered, not its parent element.

In your code, you would need to add the text-align center rule to the
body rule set.

Andrew
--
http://leftjustified.net/
<layer src="ajax.shtml">I got your Web2.0 right here...</layer>

On 2/5/07, Christian Fagan <[EMAIL PROTECTED]> wrote:
> Thanks for replying so quickly,
>
> Re: Ben - Im not really all that concerned about getting it absolutely
> 100% correct across all older IE versions but would be good to know for
> future (just in case).
> Re: Andrew - It was my understanding that older versions of IE had
> problems with the 'margin' attribute (as you say) but that's why it
> should be accompanied by the 'text-align: center' attribute?
>
>
> Andrew Krespanis wrote:
> > It's been a while since I've had to include support for IE5 (and how
> > great that feels), but I'm pretty sure your problem is the use of
> > margin:0 auto; for centering -- if I remember correctly, IE < 6
> > doesn't understand it.
> >
> > You can do:
> >
> > position:relative;
> > width: 550px;
> > left: 50%;
> > margin-left: -225px;
> >
> >
> > -Andrew
>
> --
> Christian Fagan
> Fagan Design
>
> 0432 220 579
> [EMAIL PROTECTED]
> www.fagandesign.com.au
>


*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
*******************************************************************




*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
*******************************************************************

Reply via email to