I want to select all th and td under div.
Writing something like:
#div_id th,td {
...
}
is not good since it selects all the td-s.
I saw solution here to write
#div_id th,#div_id td {
...
}
Is there other way, so I should not repeat the #div_id?
Thanks.
Pure CSS wise, there is no better answer than your own. But you could look into SASS or similar technologies, that would allow for things like that.