![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
A table comes near the beginning of the page. I have the <td> of row 1 column 1 styled in line with border-top:none and border-left:none. Yet the top and left borders are still present. |
#3
| |||
| |||
|
|
A table comes near the beginning of the page. I have the <td> of row 1 column 1 styled in line with border-top:none and border-left:none. Yet the top and left borders are still present. 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? |
#4
| |||
| |||
|
|
"The Plankmeister" <plankmeister_NOSPAM_ (AT) hotmail (DOT) com> wrote: 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? Yes. Setting the border attribute in HTML sets a border both for the table as a whole and for individual cells. |
|
Suggestion: Use e.g. <table ... border="2"> in HTML and table { border-collapse: collapse; border: none; } th, td { border: grove 2px; } in CSS. |
|
By the way, I wonder why Stan's style sheet centers the data cells. Wouldn't right alignment be more suitable for numeric data? |
#5
| |||
| |||
|
|
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.) |
#6
| |||
| |||
|
| http://www.acad.sunytccc.edu/instruc...at04/qz05_.htm A table comes near the beginning of the page. |
#7
| |||
| |||
|
|
In article <MPG.19ee34fc9e711c2298b51a (AT) news (DOT) odyssey.net> in comp.infosystems.www.authoring.stylesheets, Stan Brown the_stan_brown (AT) fastmail (DOT) fm> wrote: http://www.acad.sunytccc.edu/instruc...at04/qz05_.htm A table comes near the beginning of the page. Can I verify my (now slightly increased) understanding of http://www.w3.org/TR/REC-CSS2/tables.html>, to wit: in the collapsing border model, there is no way to suppress borders of empty cells automatically, nothing to correspond to empty-cells? |
|
What I've done is to create a class "tlnotch" with border-left and border-top set to none, and assigned that class to the upper-left cell of that table. Is there a better way, or is that about it? |
#8
| |||
| |||
|
|
In article <MPG.19f5008138d8170b98b55d (AT) news (DOT) odyssey.net>, Stan Brown wrote: What I've done is to create a class "tlnotch" with border-left and border-top set to none, and assigned that class to the upper-left cell of that table. Is there a better way, or is that about it? Other ways, at least: [snip suggestion with 'firstchild'] To get it work on winIE whitout class I would try to add thead and then use thead td {border:none} It would be inconvient to try selecting empty cells from other places without classes, but upper left corner of table-row-group element. |
![]() |
| Thread Tools | |
| Display Modes | |
| |