r/csshelp • u/NeighborhoodLoud2076 • Jun 27 '26
Responsive font sizes
I came across the below, when searching for the best way to make sure I get font sizes to be responsive. I always thought it better to use %'s because that would auto adjust. Have I got that right?
Consider Using em or rem Units
While px is perfectly fine and widely used, defining your breakpoints in em or rem (e.g., 48em instead of 768px) is excellent for accessibility. If a user increases their browser's default text size, em-based breakpoints will scale accordingly, preventing your layout from breaking.
1
Upvotes
View all comments
Show parent comment
1
u/NeighborhoodLoud2076 Jun 27 '26
That was what I found on the internet.
For me personally, I have always used percentages, because they auto adjust.