css - :first-child pseudo selector not targeting element -


i can't head round why first-child selector isn't working.

i've created jsfiddle show code: http://jsfiddle.net/wdtvv/

basically following css rule isn't working:

.form-item-products:first-child {   display: none;  } 

does know why? have screwed syntax using pseudo selectors?

thanks guys,

rick

the first child not .form-item-products, rather #product-guide-wrapper, selector won't match.

as slaks has mentioned, there isn't :first selector in css jquery's. given structure, however, should able use #product-guide-wrapper + .form-item-products instead.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -