Skip to content

Instantly share code, notes, and snippets.

@akirchmyer
Created November 17, 2013 03:48
Show Gist options
  • Select an option

  • Save akirchmyer/7508851 to your computer and use it in GitHub Desktop.

Select an option

Save akirchmyer/7508851 to your computer and use it in GitHub Desktop.
A Pen by Andrew Kirchmyer.
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>
.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