• Wincent
    Open
  • Blog
  • Wiki
  • Snippets
  • Tags
  • Search

Preventing CSS box-shadow from spilling overEdit

Created 5/16/2014, updated 5/18/2017

Answer here:

  • http://stackoverflow.com/a/5853364/1626737

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.

  • css
  • wiki
Site
  • About
  • Blog
  • Wiki
  • Snippets
  • Tags
  • Search
External
  • GitHub
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
Colophon

Made by Greg Hurrell using React, Relay and GraphQL (with help from Git, Redis and Neovim).