I have two floated divs. They are close enough to each other. When I use box-shadow on that divs, one of the shadows spreads on the other one. I want them NOT to spread on their shadows. I've tried z-index, no hope there..
Here my code goes:
<div class="bloklar">
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
</div>
CSS:
.bloklar
{
padding:0;
position:relative;
width:1000px;
}
.bloklar div
{
display:block;
padding:5px;
margin:5px;
width:230px;
height:280px;
background-color:white;
float:left;
font-size:20px;
-webkit-box-shadow: 0px 0px 30px 0px rgba(50, 50, 50, 0.75);
-moz-box-shadow: 0px 0px 30px 0px rgba(50, 50, 50, 0.75);
z-index:2;
box-shadow: 0px 0px 30px 0px rgba(50, 50, 50, 0.75);
}
Cheers.