
- Javascript Basics Tutorial
- Javascript - Home
- Javascript - Overview
- Javascript - Syntax
- Javascript - Enabling
- Javascript - Placement
- Javascript - Variables
- Javascript - Operators
- Javascript - If...Else
- Javascript - Switch Case
- Javascript - While Loop
- Javascript - For Loop
- Javascript - For...in
- Javascript - Loop Control
- Javascript - Functions
- Javascript - Events
- Javascript - Cookies
- Javascript - Page Redirect
- Javascript - Dialog Boxes
- Javascript - Void Keyword
- Javascript - Page Printing
- JavaScript Objects
- Javascript - Objects
- Javascript - Number
- Javascript - Boolean
- Javascript - Strings
- Javascript - Arrays
- Javascript - Date
- Javascript - Math
- Javascript - RegExp
- Javascript - HTML DOM
- JavaScript Advanced
- Javascript - Error Handling
- Javascript - Validations
- Javascript - Animation
- Javascript - Multimedia
- Javascript - Debugging
- Javascript - Image Map
- Javascript - Browsers
- JavaScript Useful Resources
- Javascript - Questions And Answers
- Javascript - Quick Guide
- Javascript - Functions
- Javascript - Resources
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 Articles
- 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 a responsive image gallery with CSS
- How to create a blurry background image with CSS?
- How to create image filters with CSS
- How to create a "black and white" image with CSS?
- How to create a full-page background image with CSS?
- How to create an image gallery with CSS

Advertisements