Previous Message
Next Message

centering web page within all browsers no matter resolution/screen size

Sent by Tatham Oddie on 11 June 2005 01:01


Bruce,

Take a look at the CSS behind http://www.whatcanido.com.au/ as it is centred
both vertically and horizontally in all browsers.


Thanks,

Tatham Oddie
Technical Director, Fuel Advance
www.fueladvance.com


-----Original Message-----
From: [EMAIL-REMOVED]
[EMAIL-REMOVED]] On Behalf Of Bruce Gilbert
Sent: Saturday, 11 June 2005 7:35 AM
To: [EMAIL-REMOVED]
Subject: [css-d] centering web page within all browsers no matter
resolution/screen size

Hello,

I am having trouble getting my web page centered within all browsers
no matter what the screen resolution or monitor size is.

I thought applying :

body{
margin: 0 auto;
}

would work, but it doesn't. Was is the trick to get this to work?

the URL of test site in question:

www.inspired-evolution.com

CSS: http://www.inspired-evolution.com/Gilbert.css

I searched the wiki but didn't find the answer I was looking for so
any assistance/guidance is greatly appreciated!

-- 
::Bruce::
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/


______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Message thread:

Possibly related: