I'm wondering - wouldn't it work to simply set the width of the body
appropriately, then set it's left and right margins to "auto"?
Same effect without any extra non-semantic cruft.
This just off the top of my head, so YMMV.
--
s:r {
scott reston
raleigh, nc
http://scott.therestons.com
scott at therestons * com
}
[EMAIL PROTECTED] wrote:
> On Thu, Jun 15, 2006 at 12:21:04PM +0200, Els wrote:
>> [EMAIL PROTECTED] wrote:
>>> 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;.
>
> Oh - it's that simple?
>
> Ok, that sounds good! I'll get to trying it.
>
> Thanks very much to you, and to David, for your help.
>
> Let's see how I get on...
>
> Cheers,
______________________________________________________________________
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/