in the example below I need a drop-shadow
on all sides except on the top
I tried this - without success
filter:drop-shadow(-3px 3px 3px rgba(0,0,0,0.3), 3px 3px 3px rgba(0,0,0,0.3));
.story{
width:50vw;
margin:0 auto;
height:50vh;
background:orange;
border-radius:0 0 14px 14px;
filter:drop-shadow(-3px 3px 3px rgba(0,0,0,0.3));
}
<div class='story'></div>
Consider a
clip-path
that will clip only the top part then you can use a basic box-shadow (or a drop-shadow)To undestand what the clip-path is doing: