|
|
|
|
|
by leeoniya
4177 days ago
|
|
imo, flex-box and evangelism of box-sizing border-box have been the best things since CSS3 selectors and transforms/transitions. i only wish that <col> elements could propagate style rules as if they were parents of all the related td/th cells. there's still no way to specify text-align and font-* on entire columns easily, which is just silly. |
|
Or if you don't need IE8 support you could use the nth-child selector (e.g. .my-table td:nth-child(2) { text-align: center; }).
In some cases I would argue one of these techniques would be cleaner / better than adding a <col> element just for a styling hook. But in other cases I agree with you that it would be nice if <col> styles propogated.