What's the difference between pixels and ems?
2em
stands for twice the default font sizeSwee-heet! While pixels are an absolute unit, ems depend on the default font size. In some cases, pixels are the better choice; in others, ems are better.
So close! While pixels are an absolute unit, ems depend on the default font size. In some cases, pixels are the better choice; in others, ems are better.