I'm struggling with a design issue on my site where I have four divs in the center, each represented by a box with a box-shadow. Unfortunately, the colors of the shadows are getting mixed up and creating an unwanted effect. https://i.sstatic.net/NdAUB.png
Below is the CSS code used:
.text1{
background-color: red;
-webkit-box-shadow:0px 0px 150px 20px rgba(255,0,0,0.5);
-moz-box-shadow: 0px 0px 150px 20px rgba(255,0,0,0.5);
box-shadow: 0px 0px 150px 20px rgba(255,0,0,0.5);
}
.text2{
background-color: blue;
-webkit-box-shadow:0px 0px 150px 20px rgb(0, 130, 255, 0.7);
-moz-box-shadow: 0px 0px 150px 20px rgba(0,130,255,0.7);
box-shadow: 0px 0px 150px 20px rgba(0, 130, 255, 0.7);
}
.text3{
background-color: green;
-webkit-box-shadow:0px 0px 150px 20px rgba(0,255,0,0.7);
-moz-box-shadow: 0px 0px 150px 20px rgba(0,255,0,0.7);
box-shadow: 0px 0px 150px 20px rgba(0,255,0,0.7);
}
.text4{
background-color: yellow;
-webkit-box-shadow:0px 0px 150px 20px rgba(255,255,0,0.7);
-moz-box-shadow: 0px 0px 150px 20px rgba(255,255,0,0.7);
box-shadow: 0px 0px 150px 20px rgba(255,255,0,0.7);
}
And here is the corresponding HTML code structure:
<div class="categories">
<div class="row">
<div class="game text1"><a href="#">text</a></div>
<div class="game text2">text</div>
</div>
<div class="row">
<div class="game text3">text</div>
<div class="game text4">text</div>
</div>
</div>