Is it possible to edit an element depending on the child it contains?
<div>
<section id="content-area">Soy el hijo de div</section>
</div>
div < #content-area{
border: solid 1px red;
}
When we have a child element, in the css we only have to specify who is the father to be able to edit it, in some cases the symbol > (greater than) to determine who is the father and who is the child, and I would like to know if there is any way to edit the father using the identifier of the child, or do not know if there is something similar as I mentioned in the previous css, using the symbol < (less than) where # content-area is child of div
, to div to be able to put a red border only when parent of #content-area
.