-1

I have seen a site styling

html
{
  --r-globalnav-height: 44px;
}

what does this mean?

J II Jr.
  • 37
  • 10

1 Answers1

3

It is CSS variable. It can contain specific values to be used multiple times in a style sheets.

You can then use the variable from your example as follows:

nav {
  height: var(--r-globalnav-height); /* height: 44px */
}

You can read more at Using CSS custom properties (variables) - MDN

Jax-p
  • 7,225
  • 4
  • 28
  • 58