Should I be using em or px for my font-size in CSS? The reason I ask is because I am wondering if em would be better for print outs? Or does it have nothing to do with that?
(Amazed that I haven’t researched this more… I have always used px)
Well basically it doesn’t have difference at all,they are just css units.
em: 1em is equal to the current font size. 2em means 2 times the size of the current font. E.g., if an element is displayed with a font of 12 pt, then ‘2em’ is 24 pt. The ‘em’ is a very useful unit in CSS, since it can adapt automatically to the font that the reader uses