Skip to content

Instantly share code, notes, and snippets.

@trumball
Created May 24, 2013 16:59
Show Gist options
  • Save trumball/5644924 to your computer and use it in GitHub Desktop.
Save trumball/5644924 to your computer and use it in GitHub Desktop.
Inner CSS3 Box Shadow The box shadow property has offered immense changes into how we build websites. You can portray box shadows on nearly any element, and they all generally look great. This piece of code will force inner shadows which is a lot harder to design around, but in the right cases it looks pristine.
#mydiv {
-moz-box-shadow: inset 2px 0 4px #000;
-webkit-box-shadow: inset 2px 0 4px #000;
box-shadow: inset 2px 0 4px #000;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment