• 2021-02-14

    Shadow around multiple elements

    Comments

    Start a discussion

    The css property box-shadow is not optimal in all situations. For example, when creating a speach bubble, a box shadow will only apply to the box, not the arrow.

    To make both the box and the arrow have the same shadow you can use:

    filter: drop-shadow(.1rem .1rem .1rem rgba(0,0,0,.5));

    Sources

    https://youtu.be/3ikye7Qc7Ak?t=1957