top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

How to make an image as transparent in css?

0 votes
506 views
How to make an image as transparent in css?
posted Jul 30, 2014 by anonymous

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

With the Opacity tag image will be transparent in css.
Here is the example:

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Untitled Document</title>
<style>
  #img {
  opacity:0.4;
  }
</style>
</head>

<body>
<div id="img">
<p><img src="butterfly.jpg" width="300" height="231" alt="butterfly in saanich" /></p>
<p><img src="butterfly.jpg" width="300" height="231" alt="butterfly in saanich" /></p>
<p><img src="butterfly.jpg" width="300" height="231" alt="butterfly in saanich" /></p>
<p><img src="butterfly.jpg" width="300" height="231" alt="butterfly in saanich" /></p>
</div>
</body>
</html>
answer Aug 4, 2014 by Rahul Singh
...