CSS - drop shadow


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

CSS box shadow syntax - just because i can never remember the order of the attributes, off the top of my head!


Copy this code and paste it in your HTML
  1. /* offset-x, offset-y, blur, spread, colour rgba(R,G,B, alpha) */
  2. -webkit-box-shadow: 3px 3px 3px 0px rgba(0, 0, 0, 0.4);
  3. -moz-box-shadow: 3px 3px 3px 0px rgba(0, 0, 0, 0.4);
  4. box-shadow: 3px 3px 3px 0px rgba(0, 0, 0, 0.4);

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.