Best would be being able to use conditional CSS or the calc() function to set the margins...
Anyway, I just wanted to point that, contrary to logic, CSS px are not (should not be) real screen pixels, but, according to the
CSS spec:
px: pixel units — 1px is equal to 0.75pt.
but even that can change depending on the exact resolution or the intended usage distance.