There's a first table row that looks like this:
....
<tr>
<th colspan="2">Add a category</th>
</tr>
...
It renders correctly. However I want it to be without colspan
attribute, but styled in CSS instead. And the reason for that is because there are a lot of similar tables, so it wouldn't require to define the attribute over and over again (just adhering to DRY principle)
I just want it to be as:
<tr>
<th>Add a category</th>
</tr>
// CSS
table th:first-child {
/* Pseudo attr */
colspan : 2px;
}
I've tried playing with float
, padding
and width
with no success. Is there any way to do that in pure CSS?