i tried multiple selectors but couldnt get anything out.
html:
<div class="backg">
<div class="colors color1">red</div>
<div class="colors color2">blue</div>
<div class="colors color3">green</div>
</div>
css:
.backg{
display:flex;
flex-flow:row wrap;
padding:1cm;
justify-content: space-evenly;
border:5px double black
}
.color1{
border: 5px solid red;
}
.color1:hover{
background-color: red;
}
the .color1:hover attribute should turn the whole page to red and similarly for other two divs
one thing i tried was the :root
selector to change the body background but failed.