Reputation: 1915
I have this html code:
<div class="form-group well">
<p>...</p>
<hr>
<div class="select-skill">
...
</div>
<div class="select-skill">
...
</div>
<div class="select-skill">
...
</div>
<div class="select-skill">
...
</div>
</div>
And i want to set a style using css3 to second child that has select-skill
class, but i cant use .select-skill:nth-child(2)
, It doesn't work.
I know the solution is to remove <p>...</p><h1>
or move select-skill
to a new parent.
Is there any solution to select this element without adding any code of html?
Upvotes: 0
Views: 69