Question: what is px and em?
Answer: The em and ex units depend on the font and may be different for each element in the document. The em is simply the font size. In an element with a 2in font, 1em thus means 2in. ... The px unit is the magic unit of CSS. It is not related to the current font and usually not related to physical centimeters or inches either.