Advertise with us

Descendant Selectors in CSS

Posted by  Dag Hammarskjold
 1662  View(s)
Rate this:
Hi Expert,

Can any one tell me what is descendant selectors in css and how to use this? 

Please provide any use full example.

Any help on above is really appreciated.
  1. Re: Descendant Selectors in CSS


    Descendant selectors apply style based on whether one element is a descendant of another. In CSS, descendant means an element that is a child, grandchild, great grandchild, and so on, of another element. This type of relationship is referred to as an ancestral relationship. 


    div#body span.inline-code {