Getting transparency right on the web
	
			    	
			    	14 years ago
			    	No comments
			    
			    
		    Transparency effects on divs can look amazing when done right, here is a piece of fail safe code to ensure your transparencies look consistent accross all browsers.
Take a look at the code for IE will you! When are they going to learn?
Example of transparency on a DIV
div {
  opacity: 0.5;
  -moz-opacity: 0.5;
  -khtml-opacity: 0.5;
  -ms-filter: “progid:DXImageTransform.Microsoft.Alpha(Opacity=50)”;
  filter: alpha(opacity=50);
}