Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

What does r-globalnav-height mean in a css file

I have seen a site styling

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

what does this mean?

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

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

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading