Timeline for Why use rem units for spacing and sizing, instead of px units?
Current License: CC BY-SA 4.0
9 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Sep 1 at 8:34 | history | edited | jazZRo | CC BY-SA 4.0 |
added 907 characters in body
|
Aug 31 at 16:52 | comment | added | Devin |
I have nothing to add to @jazZRo 's excellent answer, but after seeing your wireframes, which are supposed to explain the problem, I don't see any issue at all. The thing is, users have logical cognitive models that usually don't fit designers' needs. If users enlarge a UI, they will expect it to grow, and "losing" a card would be a expected behavior—they'll just scroll down. This has been tested thousands of times, and there are countless papers on this, so I won't go further. But even if you need to do what you mentioned, you can still do it: simply use rem for text and px for padding.
|
|
Aug 24 at 12:15 | comment | added | Morco | I added some wireframes to my initial question. As you can see there, the purpose of a dashboard is pretty much lost when scaling the spacing. | |
Aug 23 at 5:52 | comment | added | jazZRo | Has this answered your question about px vs rem? You can always post another question and ask about this particular scaling problem. But I’m curious what that problem is. Why are you looking for a different way of scaling? Do you have examples that show the benefit of it or the problem it would solve? | |
Aug 22 at 19:32 | comment | added | Morco | Well, I kinda came to the conclusion that both rem and px are too rigid solutions for what is actually needed. They are both linear solutions. What is needed is a curve for scaling the spacing based on text. I don't think the current technologies support this natively, so designers choose whichever option they can. | |
Aug 22 at 16:00 | comment | added | jazZRo | I don't understand. Can you give a reason why or in what situation it isn't wanted to scale the spacing along with the text? Do you suggest that it is worth using different proportions for text and the surrounding space? That would make design/development work unnecessarily hard. Or do you have a different experience, can you tell something about it? | |
Aug 21 at 11:46 | comment | added | Morco | And indeed, it seems to be a very low number of people actually changing the font size, therefore very few designers actually bother with this issue. | |
Aug 21 at 11:45 | comment | added | Morco | Well, I don't debate that spacing is important for readability, but I don't see that as a direct reason for scaling the spacing together with the text. The answer could be improved imo. | |
Aug 21 at 9:08 | history | answered | jazZRo | CC BY-SA 4.0 |