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

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -