Opacity - CSS

Now you can set the opacity of any DOM element's background color by settong the new CSS3 feature opacity.

The syntax is opacity x.x. You can view the sample code below. I supports all CSS 3 complaint browsers

<div style="background-color: red; display: block; float: left; height: 60px; opacity: 1.0; width: 100%;">
<div style="background-color: red; display: block; float: left; height: 60px; opacity: 0.5; width: 100%;">
<div style="background-color: red; display: block; float: left; height: 60px; opacity: 0.1; width: 100%;">

No comments:

Post a Comment