Doing measurements in CSS? Maybe consider using em’s as a measure of unit instead of pixels… So all units are related to a pixel size, not a specific pixel measure…
The Wikipedia article has some good notes..
en.m.wikipedia.org/wiki/Em_(typography)