how to select only first td
of first colgroup
of table
? if i have table
with 5 column and using 5 colgroup
?
table colgroup:first-child td:first-child
From w3schools:
Note: For
:first-child
to work in IE a<!DOCTYPE>
must be declared.
Update:
As DisgruntledGoat mentions correctly, td
elements are not descendants of colgroup
elements. But the first colgroup
obviously always includes the first column so this
table tr td:first-child
which selects the first td
in every row, should do it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With