Try the Most Addicted Game - Real Rocket Racing 3d Game

Sunday, December 11, 2011

Pin It


Transparent Effect For Images

Using this CSS code you can add transparent image effect to blog or website images.
For example see the below image.

CSS Code for transparent effect:

<img src="" border="0" onmouseout=';this.filters.alpha.opacity=40' onmouseover=';this.filters.alpha.opacity=100' style='opacity:0.4;filter:alpha(opacity=40)'/>

This image transparent method uses opacity property from style sheet

In above code Firefox uses the property opacity:x for transparency, where IE uses filter:alpha(opacity=x).
For Firefox x takes value from 0.0 - 1.0. A lower value makes the element more transparent.
For IE x can take value from 0 - 100. A lower value makes the element more transparent.

1. Change the image url which is show in red color with your own image url.
2. Opacity value of zero will make image invisible.


Post a Comment