Questions tagged [border-collapse]
13 questions
41
votes
5 answers
Table border color in CSS with border collapse
I want to put a line above some field in a table, to indicate that it is a sum of the above values. However, the table already has borders by default.
Here is an example: I have a table with borders collapsed. I set the border-bottom on one field,…

Sjoerd
- 74,049
- 16
- 131
- 175
3
votes
1 answer
Position sticky and background-color of thead cell hides outline of tbody
How do you prevent the red outline from being hidden by the green background-color of the th and keep the border-collapse? Is there a CSS spec that defines this behavior?
table {
border-collapse: collapse
}
tbody {
outline: solid…

Josh Unger
- 6,717
- 6
- 33
- 55
2
votes
0 answers
Is there a way to work around Safari's colspan border rendering bug with pure CSS?
If I have a table with collapsed borders, and a table cell with a colspan and no border, and it spans adjacent cells with and without borders, Safari will show a border where there should not be one. I can fix this by having extra table cells to…

Ben Thornton
- 36
- 5
1
vote
1 answer
Why does the border of tr not show unless the parent table tag has the border-collapse property set to collapse?
html: