Conversion from px to em

Doesn't feel elegant, but seems to work...