Tuesday, August 20, 2013

CSS transparent image

<html>
<head>
<style type="text/css">
img
{
opacity:0.4;
filter:alpha(opacity=40)
}
</style>
</head>
<body>

<h1>Image Transparency</h1>
<img src="klematis_big.jpg" width="150" height="113" alt="klematis"
style.opacity=0.4;filters.alpha.opacity=40" />

</body>
</html>

Result

 

No comments: