"earl" <> wrote:
><table width="640" cellpadding="0" cellspacing="0" id="mainTable">
>
>#mainTable
>{
> border : 1px;
> border-color: black;
This would be better as
border: 1pxs solid black;
or
border-width: 1px;
border-style: solid;
border-color: black;
> width: 640px;
> margin-left: auto;
> margin-right: auto;
>}
>
>The above code centers the table using opera 7.0 but not with IE 6.0. I like
>to do this using css and not html. Is there something Im missing ?
It will work in Win IE6 if you include a doctype that triggers
standards mode rather than quirks mode. See
http://www.hut.fi/~hsivonen/doctype.html
It will not work in Win IE5.5 and lower.
Steve
--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor
Steve Pugh <> <http://steve.pugh.net/>