CSS Opacity

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>


Leave a Reply

Your email address will not be published. Required fields are marked *