1
I’m trying to get a tag th
has two lines and the first line occupies the width
the whole of the parent tag, and that the second row be divided into 4 columns. However I could not reach this result using the tag th
tagged tr
and td
Inside, the closest I could get was using Divs.
my doubt would be possible to get this result with the tags used in tables. (td
, tr
, th
)
.header {
background: #c3ac6c;
text-align: center;
}
th{
border: 1px solid black;
overflow: hidden;
}
<table>
<tr class="header" border="1">
<th>CNPJ</th>
<th>CLIENTE</th>
<th>AGÊNCIA</th>
<th>
<div>
<div>COBRANÇA</div>
</div>
<div style="display: flex; justify-content: space-between" >
<div>1</div>
<div>2</div>
<div>3</div>
<div>4</div>
</div>
</th>
<th>
<div>
<div>VOL MM</div>
</div>
<div style="display: flex; justify-content: space-between">
<div class="border">1</div>
<div>2</div>
<div>3</div>
<div>4</div>
</div>
</th>
</tr>
</table>
Perfect, worked here thanks :)
– OtavioCapel
@Otaviocapel cool that worked there, this is a very old rss technique
– hugocsl