can you list all the elements that are centered automatically without using style sheets like the < th > element.
isn't center removed from xhtml? just being technical :D
CrazyJugglerDrummer
2009-07-13 01:04:09
@Crazy - No. XHTML 1.0 contains everything that HTML 4.01 contains.
David Dorward
2009-07-13 09:10:08
+1
A:
http://www.w3.org/TR/CSS2/sample.html lists the default styling applied to each element
ctshryock
2009-07-12 22:39:07
It contains typical styling. Not all browsers conform to that recommended stylesheet.
David Dorward
2009-07-13 09:11:07
@David very true, and so long as not all browsers conform to it, an actual list of elements that are centered automatically is difficult with out making special notice of which browser supports which. If the OP isn't going to use stylesheets to account for this I figured the typical list was most applicable
ctshryock
2009-07-13 15:38:15
+1
A:
<th>
is not guaranteed to center the text. It just happens to be rendered like that in most browsers.
You can only rely on presentational elements and attributes, like <center>
and <p align=center>
for this.
porneL
2009-07-13 00:54:14
Even then, the user might have overridden them with a local stylesheet.
David Dorward
2009-07-13 09:11:31