<TABLE border="1">
<COLGROUP>
<COL><COL align="char" char=".">
<THEAD>
<TR><TH>Vegetable <TH>Cost per kilo
<TBODY>
<TR><TD>Lettuce <TD>$1
<TR><TD>Silver carrots <TD>$10.50
<TR><TD>Golden turnips <TD>$100.30
</TABLE>
The items in the column do not align on the ".". Anyone ever tried this/had
any luck? Did not see this in the FAQ's (though it is possible my glasses
were dirty).
Thanks,
Ian
> The items in the column do not align on the ".". Anyone ever tried
> this/had any luck?
The align="char" attribute is poorly if at all supported.
This has been discussed fairly often, and various workarounds have been
suggested - nothing really good, but something you might wish to
consider. See e.g. the discussions
http://groups.google.com/groups?th=9fa138ae54c4cbc9&rnum=1
http://groups.google.com/groups?th=c2ae11a7af209f2a&rnum=1
http://groups.google.com/groups?th=de83a51e9c5e886e&rnum=4
--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html
I remember trying this myself a while back. To my disappointment, it
didn't work on any of the browsers I tested.
--
Lawrence Edwards
http://www.velvetant.org
"Lawrence Edwards" <nos...@nospam.net> wrote in message
news:3DA4CB80...@nospam.net...
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.394 / Virus Database: 224 - Release Date: 10/3/2002
Almost. When displayed in a proportional font, some digits are wider than
others. For instance, 1 is not going to be as wide as 6.
--
Jim Dabell
Thanks for the confirmation,
Ian
i did remember seeing it somewhere and did a quick search. i found this:
http://www.w3.org/MarkUp/html3/tables.html
it uses <tr align=decimal dp=":"> to line up by the ":". perhaps that'll
work (haven't tried myself).
"Jim Dabell" <jim-u...@jimdabell.com> wrote in message
news:KEOdnXzQY9A...@News.GigaNews.Com...
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.400 / Virus Database: 226 - Release Date: 10/9/2002
[the align to char attribute of tables is unimplemented]
n00b wrote:
>>why don't you just right-align the numbers and always use 2 decimal
>>places? that should do it, right?
Jim Dabell wrote:
> Almost. When displayed in a proportional font, some digits are wider than
> others. For instance, 1 is not going to be as wide as 6.
If you know that a table will be only numeric data, is a monopsaced font
appropriate? Any of the typographically inclined posters care to comment
on readability of proportional vs monospaced fonts, where numbers are
concerned?
--
happy:after {
content: " :-) "
}
Lining figures in a typeface are usually the same width as each other.
Most of the typefaces you use contain lining figures (ie. the ones that
are the same height, as opposed to old style figures).
- Paul