filter: drop-shadow(0px 10px 3px black);
filter: drop-shadow(30px 10px 4px #4444dd);
drop-shadow(offset-x offset-y blur-radius color)
<html>
<style type="text/css">
.box {
position: relative;
width: 400px;
height: 300px;
background-color: #fff;
box-shadow: 0 1px 5px rgba(0,0,0,0.25), 0 0 50px rgba(0,0,0,0.1) inset;
border-radius: 1% 1% 1% 1% / 1% 1% 1% 1%;
}
.box:after {
position: absolute;
width: 64%;
height: 12%;
left: 18%;
border-radius: 50%;
z-index: -1;
bottom: 0%;
content: "";
box-shadow: 0 50px 24px rgba(0,0,0,0.24);
}
</style>
<body>
<div class="box">
<img src="img.jpg" />
</div>
</body>
<html>
filter: drop-shadow(x-offset, y-offset, blur, color);
Code Example |
---|
Css :: remove position absolute attribute by adding css |
Css :: css mutline comment |
Css :: how to add color in css |
Css :: add expanding underline on page load css |
Css :: internal style |
Css :: on hover css |
Css :: css background pattern |
Css :: how to disable css-select select box |
Css :: bootstrap modal overflow |
Css :: Add border to text - Css |
Css :: linux remove files except |
Css :: how to center text in a div |
Css :: css animate svg circle radius |
Css :: css background image not working |
Css :: center background image in css |
Css :: css background text clip |
Css :: The :invalid CSS pseudo-class |
Css :: backgroud color css |
Css :: margin bottom |
Css :: css varianbes |
Css :: grid-column css |
Css :: center div |
Css :: border css dashed |
Css :: css flexbox |
Css :: how to make width equal to height css |
Css :: animation css |
Css :: icon circle css |
Css :: css image gallery |
Css :: css negative padding |
Css :: css basic template |