I have the following divs:
<div id="container">
<div class="different_class"></div>
<div class="child"></div>
<div class="child"></div>
<div class="child"></div>
<div class="child"></div>
</div>
I want to apply a border to all the children divs with (.child), except the first one. so in the end all the children divs except (.different_class) and (.child:eq(0)) (I don't want to use nth-child as in the real problem I might not have .different_class div) will have the border.
I think the solution might be to use :not() selector, but I'm not quite sure how. Thanks'
:eq()is not a CSS selector by the way. It's part of jQuery.