moneysharma — 2013-02-22T09:40:58-05:00 — #1
i want to learn how to write nested CSS selectors like
any link with the example will be most helpful.
ron_roe — 2013-02-22T09:54:33-05:00 — #2
paulob — 2013-02-22T11:18:56-05:00 — #3
You can read about combinators in the [Sitepoint reference or [URL="http://reference.sitepoint.com/css/combinators"]more specifically here](http://reference.sitepoint.com/css/selectorref).
If the question is about the child selector of which the combinator is the > sign then that simply matches all elements that are the immediate children of a specified element whereas a descendant selector matches all children.
The child selector is useful in dropdown menus because you limit the scope to the immediate children and not interfere with any nested submenus of which their could be many.