Before we get into the parent selector in CSS, we need to understand what is a selector? It is messy, and a pain in the butt, however, sometimes you don’t have the luxury of doing it server-side or choosing a semantically sound path. Jonathan Snook resurfaced this topic and gives us lots of great background on how CSS rendering works. In a css selector if we need to traverse from parent to child we use > symbol. @Amit, No not in that sense, if you are outputting a menu for instance with multiple levels through running a loop or recursive function then you’ll know the top level LI has children and can add a class to it. } Only if instead of taking content it takes a valid CSS selector, it would solve the problem. CSS (Cascading Style Sheets) is a language for describing the rendering of HTML and XMLdocuments on screen, on paper, in speech, etc. Being able to select links containing images and style them differently would have been handy. If … Parent selectors are likely to be no different. Basically there is no feature called parent selector. Anybody desiring to support their own custom parent combinator in valid CSS syntax should support something like /--parent/ or whatever name makes sense to you, so that you could write a selector like li /--parent/ ul {} and it would target the