I want to apply a class to the table, that allows me to style the “td” without having to do something like this:
<table class="myStyle"><tr><td="borderthing"></td><td style="borderthing"></td><td="borderthing"></td></tr></table>
CSS Wise, I can do:
table.myStyle {
}
Is there a way I can do:
table.myStyle.td {
// borderthing
}
Just remove the dot. Dots are for classes. Spaces are for descendants.
>are for first-generation descendants (i.e. children).Also, what does this line mean:
Did you just forget the
class=attribute? If not, that’s completely invalid HTML.