How to Convert Px to Em (Formula, Chart & Examples)
Divide the pixel value by the base font size. Here is the formula, a conversion chart and when to use em, rem or px.
Divide the pixel value by the base font size. Here is the formula, a conversion chart and when to use em, rem or px.