A Pen by Andrew Kirchmyer on CodePen.
Created
November 17, 2013 03:48
-
-
Save akirchmyer/7508851 to your computer and use it in GitHub Desktop.
A Pen by Andrew Kirchmyer.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| box shadow on one side using the 4th "spread" value in box-shadow | |
| <div class="mybox"></div> | |
| Multiple box shadows can be used to "outline" elements | |
| <div class="mybox2"></div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .mybox { | |
| width: 100px; | |
| height: 75px; | |
| background-color: #ccc; | |
| box-shadow: 0 11px 5px -5px #666 ; | |
| } | |
| .mybox2 { | |
| width: 100px; | |
| height: 75px; | |
| background-color: #ccc; | |
| box-shadow: 0 0 0 5px black, 0 0 0 10px gold; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment