On 10/07/06, Simon Kerr <[EMAIL PROTECTED]> wrote:
>
>
> Hi all. Does anyone know if there's a way to centralize an entire
> page's content in the browser using IE? I've tried margin:0 auto but no
> luck. The page has three columns that alter size in all other browsers.
> For IE, I decided to keep the layout fixed which gets round the fact
> that there's no max width or min width attributes. Anyway, due to the
> fact that its now fixed layout, how can I centralize the pages in the
> browser? THe page in question is http://www.i4cevents.com
> Cheers, Simon
>
> ______________________________________________________________________
> You can use margin 0 auto; but you need to use text-align to 'hack' IE. A
> far better method in my opinion is to use relative positioning and a
> negative margin like so:


#wrapper {
position: relative;
left: 50%;
margin-left: -370px;
width: 740px;
}

for example...



-- 
http://www.web-buddha.co.uk
http://www.projectkarma.co.uk
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to