![]() |
CSS variables, also known as Custom Properties, allow you to define reusable values in CSS. They provide a way to store values in variables and use them throughout your stylesheets. CSS variables start with Syntax:/* Declaring a CSS variable */ How to Use CSS Variables:Declaration: Declare variables inside a selector, often within :root { Usage: Use the .element { Fallback Values: You can provide fallback values if the variable is not defined. .element { |
Reffered: https://www.geeksforgeeks.org
CSS |
Type: | Geek |
Category: | Coding |
Sub Category: | Tutorial |
Uploaded by: | Admin |
Views: | 14 |