When the target element has a specified width, the calculations are incorrect and font size is much too large. Add width: "auto" to initial css changes to fix.