On Sat, 08 May 2004 10:58:59 +0200, Sector024 Media wrote:
"David Dorward" <do*****@yahoo.com> schreef in bericht
news:c7*******************@news.demon.co.uk... Sector024 Media wrote:
> My question is why netscape doesn't seem to support a style definition in > a table?
>
> I have my pages as valid xhtml1.0, and still netscape is not folowing
> orders..
>
> <table style="text-align:center;">
What do you expect to happen?
http://dorward.me.uk/www/centre/ might be useful.
> Is it because NN7.1 isn't made for a webstandard like XHTML or is NN7.1
> not YET made for XHTML support?
Netscape supports XHTML, Internet Explorer doesn't (unless you claim its
really HTML)
The thing is, that i needed to align a table, which works fine in IE (using
the style="" tag) but it doesn't work in NN..
I needed to put the normale align="center" in the table to center it.. other
options didn't work (even when the table was placed inside a <div
style="text-align:center;"> tag.
My question is, why (if NN has this behaviour) the normale align="center"
tag is deprecated by W3C?
On their website they say: 'Deprecated. Use styles instead.'
Yes. You have misinterpreted *which* style to use. "text-align: center"
centers the contents of an element, not the element itself. To center a
block element, set both horizontal margins to the same size; if you don't
have a size in mind, 'auto' will center using up as much space as needed
on either side.
Internet Explorer gets this wrong (except IE 6 in Standards mode; ask
others, as I don't believe in browser quirks). In general, if something
displays differently in Mozilla (on which Netscape 7.1 is based) and IE,
or in Opera and IE, or in pretty much any modern browser and IE, it's safe
to assume IE's rendering is incorrect.
There are exceptions, but there aren't that many.
--
Some say the Wired doesn't have political borders like the real world,
but there are far too many nonsense-spouting anarchists or idiots who
think that pranks are a revolution.