What is the difference between px, em and ex? And when you define font-size in CSS, do you use px, pt or em?
px
em
ex
pt
em : the font-size of the relevant font ex : the x-height of the relevant font px : pixels, relative to the viewing device
font-size
x-height
2.1m questions
2.1m answers
60 comments
57.0k users