Been trying to specify text alignment within specific
columns in an html 4 strict page. According to the
w3c specs,
<TABLE border="1">
<COLGROUP>
<COL>
<COL align="char" char=".">
</COLGROUP>
<THEAD>
<TR><TH>Vegetab le <TH>Cost per kilo
<TBODY>
<TR><TD>Lettu ce <TD>$1
<TR><TD>Silve r carrots <TD>$10.50
<TR><TD>Golde n turnips <TD>$100.30
</TABLE>
should cause the numeric values to align themselves
vertically with the decimal point all at the same
horizontal location. Neither Firefox or Safari do this.
Is this a case of the browsers in question simply not
following the standard, or is there some twist in the
documentation that I've missed?
Can't get this to work using stylesheets either - if
I want anything other than default text alignment in a
specific column, I have to apply it separately for each
td element in that column.
The page I'm actually trying to get to work is this
one:
which validates fine, but stubbornly refuses to centre the
entries in the "Section" column no matter what I do _unless_
if I align each td individually. I was hoping not to do that...
columns in an html 4 strict page. According to the
w3c specs,
<TABLE border="1">
<COLGROUP>
<COL>
<COL align="char" char=".">
</COLGROUP>
<THEAD>
<TR><TH>Vegetab le <TH>Cost per kilo
<TBODY>
<TR><TD>Lettu ce <TD>$1
<TR><TD>Silve r carrots <TD>$10.50
<TR><TD>Golde n turnips <TD>$100.30
</TABLE>
should cause the numeric values to align themselves
vertically with the decimal point all at the same
horizontal location. Neither Firefox or Safari do this.
Is this a case of the browsers in question simply not
following the standard, or is there some twist in the
documentation that I've missed?
Can't get this to work using stylesheets either - if
I want anything other than default text alignment in a
specific column, I have to apply it separately for each
td element in that column.
The page I'm actually trying to get to work is this
one:
which validates fine, but stubbornly refuses to centre the
entries in the "Section" column no matter what I do _unless_
if I align each td individually. I was hoping not to do that...
Comment