CSS Opacity

by Abhishek 02-Jul-16

0 1088


CSS Opacity - The opacity property used the transparency to the background of an element. It's very useful and easy to use.

Example:

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<style type="text/css">
.img{
opacity: 0.2;
}
</style>
</head>
<body>
<h2> Opacity </h2>

<div>
<img src="img.png">
</div>
</body>
</html>


Share:


Discount Coupons



Comments

    Waiting for your comments

Leave a Reply