Relative Content

Tag Archive for javascripthtmlcsscss-selectors

Applying a class to parents of a specific class

I have a bunch of tables in an HTML document. Some of the cells have a certain class of span inside them (.signs); some of them don’t. And I need to apply a border specifically to the ones containing .signs. (The purpose of this is to show how big the row and column spans are, so I can’t just put the border on the .signs itself.)