I've been learning about using native CSS variables to declare colors, but I'm curious if it's possible to create a variable for adjusting top and left positions. In my CSS template, text boxes are overlaid on an image, and the layout changes frequently by the designer. I'd like to achieve something similar to this:
:root {
--topOffset: 10px;
--leftOffset: 20px;
}
.text_Date_Overlay {
position: absolute;
top: calc(516px + var(--topOffset));
left: calc(570px + var(--leftOffset));
font-family: Verdana;
font-size: 18px;
font-style: italic;
}
Is there a way to do this without involving JavaScript?