The solution I use to solve that is something like this:

<div class="wrap">
<div class="content">You contend div here!</div>
</div>

then have:

.wrap {text-align: center;}
.content {text-align: left; width: 550px; margin: 0 auto;}

that centers is for all browsers. (from memory, I rarely need this anymore.


On 2/5/07, Andrew Krespanis <[EMAIL PROTECTED]> 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
--
http://leftjustified.net/
<layer src="ajax.shtml">I got your Web2.0 right here...</layer>

On 2/5/07, Christian Fagan <[EMAIL PROTECTED]> wrote:
> Hi group,
>
> This is my first post but I have been eavesdropping on most web related
> conversations for the past 6 months...
>
> www.fagandesign.com.au/PROJECTS/UmamiByDesign/indexNew3.html
> <http://www.fagandesign.com.au/PROJECTS/UmamiByDesign/indexNew3.html>
> is a site I'm working on at the moment. I haven't validated the HTML or
> CSS yet but I've noticed an annoying problem when viewing the site in IE
> 5.5. I have seen this problem before on other sites I have built and
> thought its just about time to get some clarification.
>
> The problem is in IE 5.5, the content of the page is left-aligned when
> it should be centered....I dare say on all recent browsers the content
> is behaving properly (works fine in IE 6.0 + 7.0).
>
> Any ideas?
>
> --
> Christian Fagan
> Fagan Design
> 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]
*******************************************************************




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

Reply via email to