The descendant combination selector selects every element with the type of e.g. F which has as parent an element with the element type of E.
# Syntax
Copy
E F {
/* declarations */
}
# Example
Copy
div span {
background-color: green;
color: white;
}
This example will add a green background-color with a white color to every <span> which has a <div> as parent.
# Browser support
Platform
Chrome
Firefox
Safari
Edge
Internet Explorer
Opera
Desktop
Yes (1)
Yes (1)
Yes (1)
Yes (12)
Yes (3)
Yes (2)
Mobile
Yes (1)
Yes (1)
Yes (1)
Yes (12)
Yes (3)
Yes (2)
Please wait a moment, the comments start loading now...