Home › Forums › Other › CSS help on ID and Class › Reply To: CSS help on ID and Class
October 15, 2014 at 1:59 am
#186268
Member
#id .myclass .myclass2 {
my property
}
This selector will select an element has a class of myclass2
that is within an element with a class of myclass
that is within an element with an ID of id
.
<div id="id">
<div class="myclass">
<div class="myclass2"></div> /* this one */
</div>
</div>
It won’t select this
<div id="id2">
<div class="myclass3">
<div class="myclass2"></div> /* not this one */
</div>
</div>