css variabele code example Example: create variable in css :root { --tab-count: 5; } #div1 { width: calc(100% - var(--tab-count)); }