In article <Xns940EEFDF02BA9jkorpelacstutfi@193.229.0.31> in
comp.infosystems.
www.authoring.stylesheets, Jukka K. Korpela
<jkorpela@cs.tut.fi> wrote:[color=blue]
>"The Plankmeister" <plankmeister_NOSPAM_@hotmail.com> wrote:[color=green]
>> I'm shooting completely in the dark here, because I haven't done
>> much with CSS & Tables, and haven't looked at the source code, but
>> maybe the border it's showing top and left is the <table> border,
>> not the <td> border?[/color]
>
>Yes. Setting the border attribute in HTML sets a border both for the
>table as a whole and for individual cells.[/color]
D'oh! That makes complete sense, as soon as it's explained. Now of
course I can't imagine why I didn't see that myself.
[color=blue]
>Suggestion: Use e.g. <table ... border="2"> in HTML and
> table { border-collapse: collapse;
> border: none; }
> th, td { border: grove 2px; }
>in CSS.[/color]
Thanks.
[color=blue]
>By the way, I wonder why Stan's style sheet centers the data cells.
>Wouldn't right alignment be more suitable for numeric data?[/color]
<silly>
I didn't ask that question!!! How dare you make a suggestion that I
didn't specifically ask for? Some people are really arrogant!!! I
come here for help and you just pick holes in what I'm doing!!! I
had good reasons for centering those numbers, but you are too stupid
to understand them!!!
</silly>
Unlike some on this newsgroup, I am grateful for all suggestions. I
agree that right justification would make more sense. Thanks!
How good is browser support for text-align:"." ? That might be even
more appropriate than text-align:right. (These particular figures
are all whole numbers, but some other tables have mixed whole
numbers and decimals.)
By the way, the centering is done by this bit of styling:
table.internallycentered td { text-align:center }
I couldn't think of a good functional (as opposed to presentational)
name for the class when I created it. But I think in fact all or
nearly all uses of "internallycentered" are for tables of numbers.
The good news is that I can change _one_ place and that will fix
most or all of them. The bad news is that I would then have
table.internallycentered td { text-align:right }
So I guess I'd better use a better class name, like "mostlynumbers".
:-)
--
Stan Brown, Oak Road Systems, Cortland County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec:
http://www.w3.org/TR/html401/
validator:
http://validator.w3.org/
CSS 2 spec:
http://www.w3.org/TR/REC-CSS2/
2.1 changes:
http://www.w3.org/TR/CSS21/changes.html
validator:
http://jigsaw.w3.org/css-validator/