I need to select a specific HTML element, which are identical, also contain inside several identical div
's, I tried with nth-child()
but it did not work. (Each child shares same properties with minor changes)
HTML
<div class="disc">
<div class="disc_PF">
</div>
</div>
<div class="disc">
<div class="disc_PF">
</div>
<div class="disc_PF">
</div>
</div>
CSS
.disc .disc_PF:nth-child(1) {}
When I use this, it selects both first disc_PF
elements,
CSS
.disc .disc_PF:nth-child(2) {}
When I use this, it select third disc_PF
element,
How can I select individual nested element separately?
Thanks