Created
May 24, 2013 13:13
-
-
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.
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
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