.wrap {
max-width: 60ch; // Maximum 60 characters per line
}
See: https://www.w3.org/TR/css-values-4/#ch
It's true that a user can set the width of their browser to make your text flow to an acceptable width. However, most browser windows contain multiple tabs, and it's annoying to switch between a bunch of tabs that each require the window to be resized for an optimal experience.
It would be cool to space paragraphs and similar content into flex-boxes so they could fill up a row if it was wide enough.
While I appreciate efficient stuff like that, it seems some clients are hell bent on having this design for them look exactly like the design of place X they are jealous of - so doing things like that doesn't always make the cut.
One recent client was viewing on a hi res mac screen - and I had not checked that one of the full-width hero images which was full width on my monitor was not large enough to go full width on hers.. not because the css was not right, but the actual image was not big enough (was 1920 px and not 2550 or whatever)
so there's that as well.
I thought the general hand wavy thoughts on browser sizing was that the average web browser user was supposed to be expected to ctrl+scroll-wheel to increase their view, and that we were supposed to respect whatever browser defaults they had for text and what not.. but real world is not what web-standards people want it to be often times. I'm not sure more than 10% know to increase zoom with laptop/desktop screens.
Also recently found that startpage searching for sites to show pics of what demo site looks like at 1920 wide, 2550 wide, etc.. the top 20 options are not so great right now.
would love real world info on how many visitors ctrl+scroll or otherwise View - zoom in or what not.
my 2 cents for early 22
https://en.wikipedia.org/wiki/Column_(typography) https://tailwindcss.com/docs/typography-plugin
Visually challenged users might use bigger font sizes — and a line would get too wide for convenient reading. There are some other issues with this approach.
I personally just keep an eye on what the top text-centric sites are doing. The logic being that NYT, Substack, Medium, etc have much more resources than me to research the subject. I just keep a list of about 10 sites and check their readability progress 2-3 times a year.
https://www.peachesnstink.com/settings
I think it works nicely. I believe the default is 600.