/ Published in: CSS
box-shadow is a new CSS3 Property that adds a drop shadow behind block elements.\r\nWith RGBA You can set the transparency of the CSS box shadows.
Expand |
Embed | Plain Text
.box-shadows { box-shadows: 2px 2px 5px rgba(0, 0, 0, .7); /* Future Proof & IE9 */ -webkit-box-shadows: 2px 2px 5px rgba(0, 0, 0, .7); /* Webkit Browsers */ -moz-box-shadows: 2px 2px 5px rgba(0, 0, 0, .7); /* Firefox */ -o-box-shadows: 2px 2px 5px rgba(0, 0, 0, .7); /* Opera */ /* The Ugly Code: For IE Browsers */ -ms-filter: "progid:DXImageTransform.Microsoft.Shadow(Strength=4, Direction=135, Color='#000000')"; /* IE8 */ filter: progid:DXImageTransform.Microsoft.Shadow(Strength=4, Direction=135, Color='#000000'); /* IE5 - 7 */ }
You need to login to post a comment.
