

- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Create a transparent image with CSS
To create a transparent image, use the CSS -moz-opacity property. You can try to run the following code to style an image and set opacity with CSS:
Example
<html> <head> </head> <body> <img style = "moz-opacity:0.2;filter:alpha(opacity=50);" src = "https://www.tutorialspoint.com/assets/videotutorials/courses/css_online_training/380_course_215_image.jpg" /> </body> </html>
- Related Questions & Answers
- Create a transparent box with CSS
- How to create an image with a transparent background text using CSS?
- Create a mirror image with CSS
- Create rounded image with CSS
- Create circled image with CSS
- Create thumbnail image with CSS
- How to create a Hero Image with CSS?
- How to create a responsive image with CSS?
- How to create a sticky image with CSS?
- How to create image filters with CSS
- How to create a responsive image gallery with CSS
- How to create a blurry background image with CSS?
- Turn transparent pixels to a specified color and make opaque pixels transparent with CSS
- How to create a full-page background image with CSS?
- How to create an image gallery with CSS
Advertisements