I am designing a new website and I want it to be compatible with as much browsers and browser settings as possible. I am trying to decide what unit of measurement I should use for the sizes of my fonts and elements, but am unable to find a conclusive answer.
My question is: should I use px or rem in my CSS?
- So far I know that using
pxisn't compatible with users who adjust their base font size in their browser. - I've disregarded
ems because they are more of a hassle to maintain, compared torems, as they cascade. - Some say that
rems are resolution independent and therefore more desirable. But others say that most modern browsers zoom all elements equally anyway, so usingpxis not a problem.
I'm asking this because there are a lot of different opinions as to what is the most desirable measure of distance in CSS, and I am not sure which is best.
