html - How to edit all CSS with same class name? -
the html structure:
<div class="big"> <div id="big_1"> <span class="to_select">d</span> </div> <div id="big_2"> <div class="big_2_2"> <span class="to_select">d</span> </div> </div> <span class="to_select">dada</span> </div> <div class="small"> <span class="to_select">i don't wanna select div</span> </div>
i want style span.to_select
inside 'big div' (not span small div). how can select to_select spans
in css 1 line?
to style spans:
span.to_select{ // css properties }
to style spans in "big div":
span.big.to_select{ // css properties }
in both cases span
can omitted (with current code, nothing else has to_select
class except spans).
Comments
Post a Comment