/ Published in: CSS
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
The CSS a.linkopacity img { filter:alpha(opacity=50); -moz-opacity: 0.4; opacity: 0.5; -khtml-opacity: 0.4;} a.linkopacity:hover img { filter:alpha(opacity=100); -moz-opacity: 1.0; opacity: 1.0; -khtml-opacity: 1.0; } Add the class "linkopacity" to the <a> <a href="#" class="linkopacity"><img src="images/photo.jpg"></a>