I have been struggling to evenly cover the shadows around all the blocks using CSS. Unfortunately, after working on it for 2 days, I still haven't been able to find a solution. The middle line seems to be misaligned and thicker compared to the others. Any ideas on how to fix this?
.shadow1{
box-shadow: inset 0px 0px 0px 5px rgba(255, 255, 255, 0.4);
width:250px;
height:200px;
background-color: rgba(0,0,0, .2);
position:relative;
}
.shadow2{
box-shadow: inset -5px 0px 0px 5px rgba(255, 255, 255, 0.4);
width:250px;
height:200px;
background-color: rgba(0,0,0, .2);
position:relative;
}
.shadow3{
box-shadow: inset 0px 0px 0px 5px rgba(255, 255, 255, 0.4);
width:250px;
height:200px;
background-color: rgba(0,0,0, .2);
position:relative;
}
.shadow4{
box-shadow: inset -5px 0px 0px 5px rgba(255, 255, 255, 0.4);
width:250px;
height:200px;
background-color: rgba(0,0,0, .2);
position:relative;
}
<div class="shadow1"> </div>
<div class="shadow2"> </div>
<div class="shadow3"> </div>
<div class="shadow4"> </div>