Set the opacity of an image with CSS

To set the opacity of an image, use the CSS -moz-opacity property. This property is used to create a transparent image in Mozilla. IE uses filter:alpha(opacity=x) to create transparent images.

Example

You can try to run the following code to style an image and set opacity with CSS:

   
   
   
      
   
Updated on: 2020-01-31T06:53:54+05:30

218 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements