what is transparency property in css

王林
Release: 2020-11-18 16:51:22
Original
3888 people have browsed it

The transparency attribute in css is opacity. The opacity attribute is used to set the opacity level of the element. The syntax is [opacity:value|inherit;]. The attribute value value is used to specify the opacity.

what is transparency property in css

The transparency property in css is opacity.

Properties:

The opacity property sets the opacity level of an element.

(Learning video sharing: css video tutorial)

Syntax:

opacity: value|inherit;
Copy after login

Attribute value:

value Specifies opacity. From 0.0 (fully transparent) to 1.0 (fully opaque).

inherit The value of the opacity attribute should be inherited from the parent element.

Example:

Set the opacity level of the div element:

div
{
opacity:0.5;
}
Copy after login

Related recommendations: CSS tutorial

The above is the detailed content of what is transparency property in css. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template