![]() |
VOOZH | about |
The env() function is used to insert the value of a user agent-defined environment variable into your CSS. It is almost the same as var() in CSS except these values are user-agent-defined rather than user-defined. These variables are globally scoped.
Syntax:
env( <custom-ident> , <declaration-value> )Note: Please note that env() property values are case-sensitive.
Property values:
Syntax:
env(SAFE-AREA-INSET-TOP,Integer_value)Example: This example shows the use of the CSS env() Function.
Output:
Syntax:
env(SAFE-AREA-INSET-RIGHT,Integer_value);Example: This example shows the use of the CSS env() Function.
Output:
Syntax:
env(SAFE-AREA-INSET-LEFT,Integer_value);Example: This example shows the use of the CSS env() Function.
Output:
Syntax:
env(SAFE-AREA-INSET-BOTTOM,Integer_value);Example: This example shows the use of the CSS env() Function.
Output:
Supported browsers: