How to design such shadows? I tried making 2 divs overlay each other, but couldn't get the bottom one to be position to the bottom right and below the green div.
You can also use filter: drop-shadow() . It isn't supported by IE but all modern browsers support it now. Benefit of drop-shadow vs box-shadow is that it respects the shape of the element and not just the content-box.
1
u/tridd3r Jul 19 '23
is that just a plain old normal box shadow?
this isn't perfect, but you get the gist: https://codepen.io/tristram/pen/abQGeRB
1
u/FalseStart007 Jul 19 '23
box-shadow
1
u/mhennessie Jul 19 '23
You can also use
filter: drop-shadow(). It isn't supported by IE but all modern browsers support it now. Benefit of drop-shadow vs box-shadow is that it respects the shape of the element and not just the content-box.