2 ms·
That's easy to do with a fixed width in units of ems Almost, but not quite. That adjusts the width to match the font-size. I want the other way around: adjust
by gojomo 18y ago
That's easy to do with a fixed width in units of ems
Almost, but not quite. That adjusts the width to match the font-size. I want the other way around: adjust the font-size to match the width. (If I make my browser window wider, the text should scale up.)
Currently, this would take Javascript -- either adaptively scaling the font until the desired words-per-line is reached, or calculating what font-size would mean the existing width, whatever it is, is ~35em.
- Daniel_Newby 18y agoNewegg does that with the menus and sidebar and it pisses me off. I find the text uncomfortably small, but when I fix it their Javascript jams it back to a small size. With high-res screens and/or people with vision trouble, setting a particular font size is generally a bad idea.
- gojomo 18y agoGood point; any such auto-sizing shouldn't override user zooms.