CSS for Table Rows and Columns
I have a simple table layout as per below:
table
tr
td1/td
td2/td
/tr
tr
td3/td
td4/td
/tr
tr
td5/td
td6/td
/tr
/table
And the following CSS:
table td:nth-child(1),
table tr:nth-child(1) {
font-weight: bold;
}
The first column is bolded but the first row remains as normal text. I don't want to use headers as TinyMCE in Wordpress creates tables automatically in the above format so I'd rather just stick with that rather than then have to change the HTML.
Incidentally, the following does work so I assume there is no issue using "tr:nth-child(n)"
tbody tr:nth-child(odd) {
background: #eee;
}
Would appreciate your help.