Skip to content

Instantly share code, notes, and snippets.

@jimjeffers
Created March 24, 2010 06:57
Show Gist options
  • Save jimjeffers/342049 to your computer and use it in GitHub Desktop.
Save jimjeffers/342049 to your computer and use it in GitHub Desktop.
/* How to fake Photoshops 'innershadow' layer effect with CSS3 modules and rgba. */
h1 {
background: rgba(255,255,255,.25);
border-radius:5px;
-o-border-radius:5px;
-icab-border-radius:5px;
-khtml-border-radius:5px;
-moz-border-radius:5px;
-webkit-border-radius:5px;
-moz-border-radius:5px;
box-shadow: -2px -2px 0 rgba(0,0,0,.25);
-o-box-shadow: -2px -2px 0 rgba(0,0,0,.25);
-icab-box-shadow: -2px -2px 0 rgba(0,0,0,.25);
-khtml-box-shadow: -2px -2px 0 rgba(0,0,0,.25);
-moz-box-shadow: -2px -2px 0 rgba(0,0,0,.25);
-webkit-box-shadow: -2px -2px 0 rgba(0,0,0,.25);
padding: 0.25em 0.5em;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment