How to select parent element which has a certain child in CSS?
Jan.16, 2008 in
CSS
Milnivri asked:
For example:
blahblah
The question is, how to apply CSS styles on the parent element without stating it directly? I only want to apply the styles on certain pages which has the child element.
This is for a wiki, which means I can’t just use another stylesheet for that page or something.
Custom Search
January 18th, 2008 at 3:07 pm
na it seems you can for children or same level elements but not parents can you use javascript that would do it?