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 } 

working example

we apply ":nth-child" actual child element, not parent element (though "gothcha" me first time ran across too.)


Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -