[thelist] CSS Centered Layout

Lonnie.Kraemer lwkraemer at directvinternet.com
Fri Oct 11 16:50:01 CDT 2002


> In my experience, using absolute positioning with CSS has
> almost always allowed me to create a site design once and
> have it be nearly 100% reliable in its presentation in
> all the 5.x browsers out there. Minor tweaks generally
> required, but no sweat.

OK!

> Using relative positioning, however, wreaks all sorts of
> havoc and causes ensuing madness.

How so?

> However, my understanding is that the ONLY way you can get
> honest-to-goodness centered layouts (which I happen to
> love from a design perspective most of the time) is to use
> relative positioning.

No, any _positioned_ element can be centered.

> Anyone know of a centered table-free css design trick that
> will allow me to do so using absolute positioning?

Yes, but you'll have to provide more info.

> Specifically, I am looking for a solution that will allow
> me to create a master bounding box for the layout, within
> which I can add columns, rows, images, etc.

Does this master box require fixed or fluid width (see Craig's post)?

> Actually code or pointers to some resource for such would
> be much appreciated.

Are you perhaps referring to vertical centering?

--
Lonnie Kraemer
-----------------------------------------



More information about the thelist mailing list