5 ms·
> 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
by jstimpfle 6y ago
> 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.
- danShumway 6y agoI 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.