My problem is that in CSS, inside a table tr:nth-child(1)
rule, border-bottom-width: 5px
is not working, but background-color: gold
is.
Any ideas how to make border-bottom-width: 5px
work?
This is my full code:
table {
border: 5px double #999;
background-color: white;
border-spacing: 5px 1em;
empty-cells: hide;
margin-left: auto;
margin-right: auto;
}
table th,
table td {
border: 1px solid black;
padding: 0.5em;
}
table tr:nth-child(1) {
background-color: gold;
border-bottom-width: 5px;
}
<table>
<caption>zľavové hodiny</caption>
<tr>
<th>zač./deň</th>
<th>pondelok</th>
<th>utorok</th>
<th>streda</th>
<th>štvrtok</th>
<th>piatok</th>
</tr>
<tr>
<th>10:00</th>
<td></td>
<td></td>
<td colspan="3">práčky, sušičky (-20%)</td>
</tr>
<tr>
<th>12:00</th>
<td colspan="2">mikrovlnné rúry (-25%)</td>
<td></td>
<td>vysávače (-30%)</td>
<td></td>
</tr>
</table>