I have this code to create a window and to illustrate the triangle attached to it on the left side:
CSS:
.triangle-box{
width: 0;
height: 0;
margin-top: 10px;
border-top: 15px solid transparent;
border-right: 15px solid #fff;
border-bottom: 15px solid transparent;
float:left;
}
.triangle-box-content{
background-color: white;
-webkit-border-radius: 2px;
-moz-border-radius: 2px;
border-radius: 2px;
border-bottom-color: #989898;
height: 140px;
width: 530px;
float:left;
text-align: left;
}
Now I want to apply a shadow to this element as a whole. Therefore, I added this code to the triangle and triangle fields:
-webkit-box-shadow: 0 0 3px 5px
-moz-box-shadow: 0 0 3px 5px
box-shadow: 0 0 3px 5px
But this makes the shadow go around the box, and the triangle makes it look like two different divs. I want to remove the shadow from the area where the triangle and the field meet. Is there any way to do this?
HTML:
<div class="triangle-box"></div>
<div class="triangle-box-content"></div>
user1747648
source
share