News for hackers. Stuff that matters.
Re:Everything You Want to Know About Media Queries and Respo... by kevincox on Monday May 29, 2023 @10:57AM (#36114627)
It's also worth noting that CSS "pixels" are not real pixels. There are somewhat scaled to the relative size. But even better you can set your breakpoints in terms of `rem` which is the user's default font size. This usually gives a pretty good intuition to how big UI components need to be to be easily readable to the user. This can also handle differences such as a user with great vision on a small device (they set a tiny font to get the most of the limited screen space) compared to a user with limited vision on a large screen far away (their text size may be cranked high so that they can see it).

There are no comments on this comment yet.