top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

how to set opacity?

+3 votes
393 views

how will it appear in Gecko, WebKit and IE.

posted Feb 19, 2015 by Khusboo

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

1 Answer

+3 votes
 
Best answer

Creating a Transparent Image

<head>
<style>
img {
    opacity: 0.4;
    filter: alpha(opacity=40); /* For IE8 and earlier */
}
</style>
</head>
<body>
<h1>Image Transparency</h1>
<img src="klematis.jpg" width="150" height="113" alt="klematis">
</body>
</html>

Example:

Regular image:

enter image description here

The same image with transparency:

enter image description here

answer Feb 19, 2015 by Manikandan J
Similar Questions
0 votes

I created "normal" table and all TD's have "border: 1px solid #e6e6e6" and "margin: 0". TR and TABLE have too "margin/padding: 0" but I still have space between TDs like here: h

...