[EMAIL PROTECTED] wrote:
> Having spent ages learning how to position stuff in CSS and
> getting it meticulously right (using the nice hack that I was
> pointed at to get IE to behave, too) the client has now said
> "Oh, can you make the content centre in the browser?"
>
> ARGH! If I was still using tables for layout this would be
> trivial but I am using absolutely positioned stuff.
>
> So... My idea is to make a container class for it all, and then
> to have everything positioned relative rather than absolute.
> And centre the containing class.

Just make a div with id="container" to hold all that's inside 
<body> now, give it position:relative, and all that was 
previously absolute positioned to the viewport, will now be 
relative to the container. (no need to change any of the absolute 
values you already set)
Then you center the container by giving it a width and 
margin:auto;.

-- 
Els
http://locusmeus.com/
http://locusoptimus.com/ 


______________________________________________________________________
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