Preventing CSS box-shadow from spilling overEdit
Answer here:
In short, use spread radius
to pull the shadow in, and then adjust the other offset(s) — offset-x
and/or offset-y
— to compensate and get the desired effect.
Answer here:
In short, use spread radius
to pull the shadow in, and then adjust the other offset(s) — offset-x
and/or offset-y
— to compensate and get the desired effect.