I'm working on a HTML/CSS table and I want the header row to have a specific background color. Below is my code:
<table class="contentTable">
<tr class="contentTableHeader">
<th>No.</th>
<th>Dienstleistung</th>
<th>Stunden</th>
<th>Preis</th>
<th>Netto</th>
</tr>
....
Here is my CSS:
.contentTable {
padding-top: 10mm;
table-layout: auto;
width: 100%;
max-width: 100%;
}
.contentTable th {
font-size: medium;
}
.contentTable td {
font-size: small;
}
.contentTableHeader {
background-color: cornflowerblue;
color: azure;
}
The issue I'm facing is that the cell separators remain white. How can I make the header row completely the same color?