Home of web learners

www.webn3rd.com

opacity is used to make transparent content of webpage

sometimes you see trasparent image,so how to do it

you can do it by css

example:

<html>
<head>
<style>
img{ opacity:0.6; }
</style>
</head>
<body>
<img src="op.jpg"/>
</body>
</html>

Output be like:

original image:

Its work like percentage,1 means 100% and here 0.6 means 60% opacity of this image

webn3rd.com

About webn3rd