2 ms·
> - If you think you need variables (like in SASS), you are probably thinking about it the wrong way I've yet to see CSS code for page layout without the usual
by skrebbel 16y ago
> - If you think you need variables (like in SASS), you are probably thinking about it the wrong way
I've yet to see CSS code for page layout without the usual awkwardness where margin-left of some element MUST equal some other element's width minus some bar's left offset, yadayada. It's for stuff like this that variables make sense. I wholeheartedly agree that if you need a variable to colour two bars and a heading orange, you're probably doing it wrong.
The blog you refer to only has an example with colours, which is just too easy.