Quantcast
Channel: Active questions tagged html - Stack Overflow
Viewing all articles
Browse latest Browse all 72388

CSS descendent selector does not update element

$
0
0

I am trying to change the border of a target descendent element with no luck. Using the descendent selector for the following HTML does not work. If anyone has any suggestions on what I may be doing incorrectly I would greatly appreciate any input

.parent .target {
     border: solid red;
}
<div class=“parent"><div class=“child”> <div class=“grandchild"><div class=”target"></div><div class="great-grandchild"></div></div></div></div>

Viewing all articles
Browse latest Browse all 72388

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>