I am trying to get a similar look (see image below) using CSS. It has all the borders, slightly folded and have a light 3D look. I tried using box-shadow and pasted the code below. This gives me some, what a similar shape, but cannot get perfect, and also use two DIVs to get this effect. Can we use one div ..? Thank you.

.div-1 { width:150px; height:300px; box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23); border-radius: 10px; } .div-2 { width:100%; height:100%; box-shadow: width:100%;height:100%;box-shadow: 0 0 5px #aaa inset; border-radius: 10px; }
<!DOCTYPE html> <html> <body> <div class="div-1"> <div class="div-2"></div> </div> </body> </html>
source share