css - Selector for the 2nd child of a child dvi -
is possible select 2nd div of child div? example
<div class="footer-widgets"> <div class="row"> <div class="footer1"></div> <div class="footer2"></div> <div class="footer3"></div> </div> </div>
i tried .footer-widgets .row:nth-child(2) { display:none } no avail
use:
.footer-widgets .row div:nth-child(2) { display:none }
we apply ":nth-child" actual child element, not parent element (though "gothcha" me first time ran across too.)
Comments
Post a Comment