I wish like to place a curved shadow under my DIV-Container if i hover on the DIV. Unfortunately the shadow is above my box and not below. Any suggestions?
This is my CSS:
.appointment {
position: relative;
z-index: 1000;
padding: 5px;
border: 1px solid #BBBBBB;
cursor: pointer;
transition: all 0.5s;
background: #FFFFFF;
}
.appointment:hover {
transform: scale(1.1);
}
.appointment:hover:after {
content:'';
position: absolute;
z-index: -1;
top: 20px;
width: 100px;
height: 45px;
background: #000000;
transform: rotate(-5deg);
}
HTML:
<div class="appointment">
<div class="desc">
<div class="app-date">07.10.2014</div>
<div class="app-location">Bamberg, Bayern</div>
</div>
</div>
<div class="appointment" >
<div class="desc">
<div class="app-date">08.10.2014</div>
<div class="app-location">Hamburg, Hamburg</div>
</div>
</div>
It should look like this: