Previous Message
Next Message

Centering main body in all window sizes

Sent by ~davidLaakso on 22 March 2006 12:12


Lee Sommerville wrote:
> Could anyone please take the time to look at
> www.liquid3.com/liquid3 please.
>
> I want the main body of the site to be totally central
> no matter what size the vierwers window is - at the
> moment its stays central but far too near the top - i
> want it completely central on all sides at all times?
>
>   
Lee,
Possible, but difficult-- and not user friendly. To stay centered 
vertically at 800 the height needs to be around 380px or less. Centering 
vertically, at any screen resolution, is dependent on user top and 
bottom window chrome. The height of the window varies wildly on my 
browsers. Compensating for probable font zoom is really tough(zoom the 
fonts on your current layout). Mostly one is better off taking advantage 
of the vertical fluidity of the Web, and the vertical canvas, by /not/ 
restricting height.

That being said, this is one method for centering vertically and 
horizontally: <http://dlaakso.com/center-stuff.html>.

Regards,
~davidLaakso



-- 

Typography exists to honor content. 
--Robert Bringhurst
<http://www.dlaakso.com/>

______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
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/
Previous Message
Next Message

Message thread: