convert a pixel value to em, based on the default size vice versa