I'm trying to make a table with different sized headers like seen in this image:
I am able to change the widths with css, but not the height.
th:nth-child(3) {
background-color:green !important;
height:20%;
width:5%;
padding:5%;
}
th:nth-child(1),th:nth-child(2) {
background-color:purple !important;
height:50% !important;
width:1%;
padding:1%;
}
This fiddle recreates the table in the document:
https://jsfiddle.net/fucrza92/
The most important part is this:
Using
rowspan
and two header rows makes it possible for some header elements to be taller than others. The same principle is applied to columns withcolspan
for the TUBE OD element.