top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration

Facebook Login
Site Registration

How to make an image as transparent in css?

0 votes
159 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
Contact Us
+91 9880187415
sales@queryhome.net
support@queryhome.net
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Bangalore-560102
Karnataka INDIA.
QUERY HOME
...