Drop Shadow with Transparency

If you use CSS3 dropshadows you can specify the color with a hex-number, but if you need a transparent shadow, use this:

box-shadow: 2px 2px 2px rgba(0,0,0,0.5);
   -moz-box-shadow: 2px 2px 2px rgba(0,0,0,0.5);
   -webkit-box-shadow: 2px 2px 2px rgba(0,0,0,0.5);

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *