Matt Fielding wrote:
> You say I'm using the old centering method, so I was wondering if
> there a new, more acceptable way of doing it? For what I need this
> obviously works fine, but for standards purposes I'm just curious if
> there's a more appropriate way of doing it.
You already have the correct centering-method for block-elements:
auto-margins, like...
div.container {margin: 0 auto;}
I copied that centering onto the outer container in your layout-example
- div.shadow - but that's just because I wanted to show where the border
were when that element were styled for full height and expansion, as you
asked for originally. Otherwise it doesn't change the centering-method,
it just doesn't give your original auto-margins much room to center on.
Your example also contains the old method for centering in IE/win quirks
mode, like...
body {text-align: center;}
div.container {text-align: left;}
...which rely on IE's proprietary method or old bug, that causes all
child-elements, including suitable dimensioned (less than 100% wide)
block-elements, to be centered within their containers - body in your
case.
Then you have an override on the centered element so the text is
aligned as you want - from the left.
So, you have included both the new and the old centering-method in that
page. I thought you did so on purpose - as I always do, so that's why I
didn't expand on the issue in my original response. Hope the above clear
things up a bit.
regards
Georg
--
http://www.gunlaug.no
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7 information -- 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/