🔥 CSS Tip

If you want a negative version of a Custom Property, multiply it by -1.

CSS Code that reads: :root {   --left-margin: 1rem; }  .example {   margin-left: var(--left-margin); }  .example--negative {   margin-left: calc(var(--left-margin) * -1); }

https://codepen.io/andybelldesign/pen/pmJgPW

Hi 👋
I’m Andy, a freelance web designer

I’m not currently booking new projects, but you can support my work by buying “Every Layout”.

Buy Every Layout