Below is the code snippet I have in my HTML table.
<table>
<tbody>
<thead>
<tr>
<th align="right" colspan="4">
<span class="font-style-bold">SCHEDULE OF RATES</span>
</th>
</tr>
</thead>
<thead>
<tr>
<th class="align-left">
<div class="para">
</div>
</th>
<th class="align-left">
<div class="para">
</div>
</th>
<th class="align-left">
<div class="para">
<span class="font-style-bold">Unit</span>
</div>
</th>
<th class="align-left">
<div class="para">
<span class="font-style-bold">Rate $</span>
</div>
</th>
</tr>
</thead>
<tbody>
<tr>
<td rowspan="align-left">
<div class="para">
</div>
</td>
<td rowspan="align-left">
<div class="para">
<span class="font-style-boldunderline">ROOFER</span>
</div>
</td>
<td rowspan="align-left">
<div class="para">
</div>
</td>
<td rowspan="align-left">
<div class="para">
</div>
</td>
</tr>
<tr>
</tbody>
</tbody>
Below is the CSS:
.frame-all thead th {
margin-top: 0em;
padding-left: 0.2em;
padding-bottom: 0.2em;
}
When I execute this code, the output on the screen looks like the following:
However, when I change the th
tags to td
, I get the desired output. I am curious why there is a difference and if achieving this with th
is possible?