In this article, we will know to make the text or image a transparent background using the CSS & will see its implementation through the example. The opacity property is used to set image or text transparent using CSS. The opacity attribute is used to adjust the transparency of text or pictures. The value of opacity lies between 0.0 to 1.0 where the low value represents high transparency and the high value represents low transparency. The percentage of opacity is calculated as Opacity% = Opacity * 100. The opacity is the degree to which the content will be hidden behind an element.
// CSS property
Example 1: This example describes the image as transparent by setting the values of the opacity to 0.3.
Please Login to comment...