So currently I have these 3 elements on the pic, and I’m using a grid to position them in a wrapper.
The problem is the “break time” and the pause icon elements are able to be toggled on/off, so if one of them turns off and disappears, the timer in the middle gets shifted around as the grid row changes it’s size.
Besides grid I’ve tried flexbox with various settings, but that gives me the same problem, I can’t fix the timer in place.
As a last resort I’ve also tried the position: absolute; to manually set the elements’ positions and that partially worked, but when I zoom-in and out the position of these elemts gets screwed around, which I don’t want.
What would be the “correct” or the least problematic way to achieve what i want?
I’ve realised I could use visibility: hidden; to hide elements instead of “un-rendering” them, and this way the layout stays the same, which is what i wanted