Using Descendant Selectors can be problematic, as it is not efficient and can easily break when there are changes made to the HTML structure. It is recommended to create new CSS class selectors instead.
// avoid
.wrapper div {..}
// prefer
.inner-div {..}
.selecting-this {..}
.or-this {..}
<div class="wrapper">
<div class="inner-div">
</div>
<div class="selecting-this">
</div>
<div class="or-this">
</div>
<div class="inner-div">
</div>
</div>
However, if you cannot modify the HTML structure:
.wrapper div {..}
When using a space in the selector, it looks for child elements with the tag div
WITHIN an element with the specified class .wrapper
For more information, visit this link: