PX, EM or REM Media Queries?
I’ve been using em based media queries since… well since I worked out that device specific media queries were a waste of time (around 2012). This article shows exactly why that is the case with a series of tests with each breakpoint and updating the users zoom and font-size settings.
Have you wondered if you should use
px
,em
orrem
for media queries? I had the same question too, and I never figured it out, not till now.When I first created the mappy-breakpoint library over a year ago, I used
An excerpt from PX, EM or REM Media Queries?rem
units. Then after a conversation with Sam Richard, I quickly switched toem
instead because I found out there isn’t a difference between the two.