When hovering over a block, I want it to be illuminated from all sides, but this does not work because the neighboring blocks are superimposed on the backlight (in the picture below and on the left).
#square { width: 100px; height: 100px; float: left; background-color: red; } #square:hover { box-shadow: 0px 0px 10px #F0FFF0; } #workspace { width: 800px; height: 1200px; background-color: white; margin-left: auto; margin-right: auto; margin-top: 20px; }
<div id="workspace"> <div id="square"></div> <div id="square"></div> <div id="square"></div> ... <div id="square"></div> <div id="square"></div> </div>
id
must be unique. Classes are used to repeat styles. - Gleb Kemarsky pm