Effect required: when hovering on a circle, the background of all 4 blocks takes on the same color as the background of the circle. How to do it?
#blocks { position: relative; } .block { display: inline-block; outline: 1px dashed #000; width: 48%; height: 50px; margin: 3px; text-align: center; transition: all linear 1s; } .circle { background: black; width: 100px; height: 100px; border-radius: 50%; margin: 10px auto; } .circle:hover { background: gray; } <div id="blocks"> <div class="block">Blog</div> <div class="block">Projects</div> <div class="block">Work tools</div> <div class="block">CV</div> </div> <div class="circle"></div>