Previous Message
Next Message

Re[2]: [css-d] Site Check please

Sent by Steve Clay on 29 May 2003 02:02


Wednesday, May 28, 2003, 6:37:02 AM, masadelante wrote:
m> Darren, that method of centering doesn't work in IE 5.0 Win. Stick a
m> containing div around your outermost div and give it the following
m> style:

m> #outerwrap {
m> width: 100%;
m> text-align: center;
m> display: inline;
m> }

I'd avoid displaying a container of a block-level element as inline.
This could cause unexpected rendering problems (inline elements are
not meant to contain blocks) and isn't necessary for IE anyway.  The
following should suffice (no wrapper needed):

body { text-align:center; }
div { text-align:left; }
#mainBody { margin-left:auto; margin-right:auto; }

Steve
-- 
http://mrclay.org/

______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Message thread: