CSS Drop shadow


/ Published in: CSS
Save to your folder(s)



Copy this code and paste it in your HTML
  1. .shadow {
  2. -moz-box-shadow: 3px 3px 4px #000;
  3. -webkit-box-shadow: 3px 3px 4px #000;
  4. box-shadow: 3px 3px 4px #000;
  5. /* For IE 8 */
  6. -ms-filter: "progid:DXImageTransform.Microsoft.Shadow(Strength=4, Direction=135, Color='#000000')";
  7. /* For IE 5.5 - 7 */
  8. filter: progid:DXImageTransform.Microsoft.Shadow(Strength=4, Direction=135, Color='#000000');
  9. }

URL: http://robertnyman.com/2010/03/16/drop-shadow-with-css-for-all-web-browsers/

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.