/ Published in: CSS
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
/* * Andrew Wayne 2010 * Cross-Browser Opacity */ .opacity { -moz-opacity: 0.5; /* Netscape */ -khtml-opacity: 0.5; /* Safari 1.x */ -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)"; /* IE 8 */ filter: alpha(opacity=50); /* IE 5-7 grrr */ opacity: 0.5; /* The rest, good browsers :) */ }