Utilisez ce code pour Shadow elliptique élégant
<div class="box shadow-arch-center"></div>
.box {
background-color: #9C9369;
width: 200px;
height: 50px;
margin: 50px auto;
}
.shadow-arch-center {
position: relative;
}
.shadow-arch-center:before, .shadow-arch-center:after {
position: absolute;
content: "";
bottom: 10px;
z-index: -10;
}
.shadow-arch-center:before {
left: 2%;
right: 65%;
/* as box-shadows get smaller, opacities increase */
box-shadow: 80px 0px 20px 22px hsla(0, 0%, 0%, .01),
70px 0px 20px 20px hsla(0, 0%, 0%, .02),
60px 0px 20px 18px hsla(0, 0%, 0%, .04),
50px 0px 20px 16px hsla(0, 0%, 0%, .08),
40px 0px 20px 14px hsla(0, 0%, 0%, .16),
30px 0px 20px 12px hsla(0, 0%, 0%, .16),
20px 0px 20px 10px hsla(0, 0%, 0%, .25),
10px 0px 20px 2px hsla(0, 0%, 0%, .5),
0 0 20px 2px hsla(0, 0%, 0%, 1);
transform: skewY(5deg);
}
.shadow-arch-center:after{
left: 65%;
right: 2%;
/* as box-shadows get smaller, opacities increase */
box-shadow: -80px 0px 20px 22px hsla(0, 0%, 0%, .01),
-70px 0px 20px 20px hsla(0, 0%, 0%, .02),
-60px 0px 20px 18px hsla(0, 0%, 0%, .04),
-50px 0px 20px 16px hsla(0, 0%, 0%, .08),
-40px 0px 20px 14px hsla(0, 0%, 0%, .16),
-30px 0px 20px 12px hsla(0, 0%, 0%, .16),
-20px 0px 20px 10px hsla(0, 0%, 0%, .25),
-10px 0px 20px 2px hsla(0, 0%, 0%, .5),
0 0 20px 2px hsla(0, 0%, 0%, 1);
transform: skewY(-5deg);
}
je doute que vous pouvez sans utiliser la toile. –