Transparent DIV SPAN for all browsers, Firefox, Opera, Safari, Chrome, Internet Explorer

To make an HTML element transparent. Just use these css elements in your css class. filter, moz-opacity, opacity.

Internet Explorer uses filter and firefox uses moz-opacity.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
.transparent
{
   filter:alpha(opacity=60); 
   -moz-opacity: 0.6; 
   opacity: 0.6; 
}







<div class="transparent">A transparent div.
</div>

The opacity value changes from 0 to 1.