Possible Duplicate:
What does “>” mean in CSS rules?
I have seen this in some CSS
body > .navid
What I want to know is, what does the “>” sign do in this CSS piece of code?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
it’s a selector for children (not just any descendent).
The selector
body > .navidwould select the.naviddiv using the following:But it would not select the
.naviddiv below because it’s a grandchild