November 2011
Intermediate to advanced
384 pages
13h 23m
English
You can set an element’s visual opacity, also known as transparency in CSS3, using the opacity property. When set, the selected element will become translucent, according to the nonnegative real number value between 0 and 1. In other words, a value of 0 is completely transparent, 1 is completely visible, and any decimal number in between will achieve a see-through effect.
Older versions of Internet Explorer, versions 4 to 8 to be precise, support a similar feature through an alpha filter. Its value is a two-digit percentage, so if you set opacity to 0.75, you should also set filter to alpha(opacity=75). Note that Internet Explorer 9 does understand the new opacity property:
selector { opacity: value; filter: alpha(opacity=value); ...Read now
Unlock full access