element root in css code example
Example: use of root in css
:root can be useful for declaring global CSS variables:
:root {
--main-color: hotpink;
--pane-padding: 5px 42px;
}
:root can be useful for declaring global CSS variables:
:root {
--main-color: hotpink;
--pane-padding: 5px 42px;
}