Skip to content

Instantly share code, notes, and snippets.

@trumball
Created May 24, 2013 13:13
Show Gist options
  • Save trumball/5643413 to your computer and use it in GitHub Desktop.
Save trumball/5643413 to your computer and use it in GitHub Desktop.
Polaroid Image Border Applying this basic snippet will allow you to implement .polaroid classes onto your images. This will create the old photo-style effect with a large white border and some slight box shadows. You’ll want to update the width/height values to match that of your image dimensions and website layout.
img.polaroid {
background:#000; /*Change this to a background image or remove*/
border:solid #fff;
border-width:6px 6px 20px 6px;
box-shadow:1px 1px 5px #333; /* Standard blur at 5px. Increase for more depth */
-webkit-box-shadow:1px 1px 5px #333;
-moz-box-shadow:1px 1px 5px #333;
height:200px; /*Set to height of your image or desired div*/
width:200px; /*Set to width of your image or desired div*/
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment