parent - css :target on children -
suppose have html
<div class="a"> <div>...</div> ... <div id="b">xyz</div> </div> <div class="a"> <div>...</div> ... <div id="c">abc</div> </div>
applying style on #b upon targeting in url easy css :target selector. possible apply some style on parent div class="a" well?
no, since need css parent selector that. nothing in css2 , css3 has been specified that. css4 have (a somewhat) parent selector (called subject selector) using !
symbol, no browser supports (yet).
Comments
Post a Comment