CSS contrast() Function
Example
img {
filter: contrast(1.75);
}
Meaning
The contrast() css function defines visual effects (contrast effects) to an element.
Version: CSS3
Standard Syntax
contrast(value)
Browser Support
The numbers in the table specify the first browser version that fully supports the property.
Status
Function Arguments
The following table describes the arguments of this function.
Argument | Description |
---|---|
value | The contrast of the result, specified as a number or a percentage.
Notes:
The initial value for interpolation is 1. |
See also
The other <filter-function> functions available to be used in values of the filter and backdrop-filter properties include: