Fix for bae font size other than 16px

Browsers assume that 1em = 16px, so if the base font size is set to
anything other than 16px, the math is wrong.