Direct child selectors in css

Total Post:25


 1868  View(s)
Rate this:
Hi Expert,

what is direct child selectors in css and how to use this? Please guide me.

Thanks in advance.
  1. Re: Direct child selectors in css


    Direct child selectors operate much like descendant selectors in that they also rely on an ancestral relationship to decide where to apply style. Descendant selectors, however, are more ambiguous because they apply to any descendant of an element; the descendant cab be a grandchild or a great-grandchild, or a great-great-grandchild, and so on. Direct child selectors apply only to immediate children of the element. 


    p > span.inline-code {
    font-family: monospace;


Please check, If you want to make this post sponsored

You are not a Sponsored Member. Click Here to Subscribe the Membership.