Thursday, 12 September 2013

How do I hide only the first element of a type?

How do I hide only the first element of a type?

I have the following markup:
<div class="ctr-1">
<h3>Title</h3>
<div class="ctr-2">
<h3>Title</h3>
</div>
</div>
And the following CSS
.ctr h3:first-child{ display:none; }
Both <h3> tags are hidden, I only want the first one hidden. How?

No comments:

Post a Comment