News for hackers. Stuff that matters.
Re:Let’s fix font size by jstimpfle on Tuesday March 30, 2021 @02:34PM (#26638473)
> Size your fonts with `em` and `rem` units, and size your containers based on the number of characters you want to fit in each line.

AFAIK this is not a good solution in most situations. The number of characters that you can fit on a fixed container varies greatly depending on platform / font / settings. By consequence, you'd lose a whole lot of control over you layout if you were to scale the containers in this way.

Re:Let’s fix font size by danShumway on Tuesday March 30, 2021 @02:39PM (#26638525)
I realize this is going to come off as dismissive, but don't use fixed container widths.

Responsive design is a paradigm shift away from perfect pixel-level control over every container size on a static-width document. It's not print design, it's a different medium.

Stop making fixed layouts that break whenever I snap a window at half-width to the side of my screen; there are legitimate reasons why someone on a computer might want their fonts to be bigger or smaller, and your column widths should adjust to accommodate that.

Re:Let’s fix font size by ryanar on Wednesday March 31, 2021 @08:00AM (#26646102)
Agreed! This idea is presented really well in https://everylayout.dev
Re:Let’s fix font size by vlz on Wednesday March 31, 2021 @11:26PM (#26656343)
https://every-layout.dev

But thanks for the reminder! I meant to have a look at that.