Skip to content

Instantly share code, notes, and snippets.

@DigitalEssence
Created February 18, 2015 10:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DigitalEssence/cc5e6bd4ee53bc1fc54b to your computer and use it in GitHub Desktop.
Save DigitalEssence/cc5e6bd4ee53bc1fc54b to your computer and use it in GitHub Desktop.
CSS - Add a border and drop shadow to an element
.av-catalogue-image {
border-radius: 0;
width: 490px;
height: 340px;
/*This adds the border, in this a 5px white border */
padding: 5px;
/*This adds the drop shadow */
-webkit-box-shadow: 6px 6px 20px -1px rgba(189,189,189,1);
-moz-box-shadow: 6px 6px 20px -1px rgba(189,189,189,1);
box-shadow: 6px 6px 20px -1px rgba(189,189,189,1);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment