descendant Combinator

descendant Combinator
CSS descendant Combinator reference
The CSS descendant combinator ( X Y { } ) is used to target and style descendants of elements using hierarchy logic.
CSS CODE EXAMPLE
<!DOCTYPE html>
<style type="text/css">
div p span {
    color:#F00;
}
</style>
<div>
  <h3>Some Stuff</h3>
  <p>Stuff inside my paragraph...<span>red text</span></p>
</div>
 

Some Stuff

Stuff inside my paragraph...red text

0 Response to "descendant Combinator"

Post a Comment