I'd like to select the last of "b" div with "last-child" or "nth-last-child(1)"
However it's not working properly. The child of div will be updating dynamicaly
so I cannot use nth-of-child(9).
<div class="parent">
<div class="a">
<div class="a">
<div class="a">
<div class="a">
<div class="b">
<div class="b">
<div class="b">
<div class="b">
<div class="b"> <-- this point
<div class="c">
<div class="c">
<div class="c">
</div>
If I select the last of "b" element,
How can I apply my css tags?
.parent > b:last-child{color:#f00;} // It's not working .parent > b:nth-last-child(1){color:#f00;} // It's not working