Reputation: 663
.class + p:first-child{
}
the above code not working, unless it's element instead of class, like p:first-child.
<div class="wrap">
<h3></h3>
<div style="clear:both"></div>
<p></p>
<p></p>
<p></p>
<p></p>
how do I select first p
base on the class wrap? I do not want to apply class name on p
.
Upvotes: 1
Views: 178