Introduction to Transparency in CSS
Opacity is supported by Firefox and it allows you to define a value between 0.0 and 1.0 (Ex: 0.3,0.4..etc). Value 0 is the highest transparent level and user will rarely see the element in this level. Value 1 is the lowest transparency level and element will be shown in normal way.
filter alpha is supported by Internet Explorer and allows you to define a value between 0 and 100. 0 is the highest transparency and 100 is the lowest transparency respectively.
CSS Code for Transparent Elements with Firefox
CSS Code for Transparent Elements with Internet Explorer
How to Make a Transparent Background Image
Normal Background Image
Transparent Background Image
Half Transparent Image
Create Color Bars using CSS Transparency
You can create a simple color bar to display the difference in transparent levels using different opacity values.
Normal
Opacity 0.9
Opacity 0.8
Opacity 0.7
Opacity 0.6
Opacity 0.5
Opacity 0.4
Opacity 0.3
Opacity 0.2
Opacity 0.1
Normal
Opacity 0.9
Opacity 0.8
Opacity 0.7
Opacity 0.6
Opacity 0.5
Opacity 0.4
Opacity 0.3
Opacity 0.2
Opacity 0.1
Leave a Reply