News for hackers. Stuff that matters.
Re:I could do that in a weekend (2016) by bern4444 on Tuesday August 24, 2021 @01:02PM (#28291677)
Fun article, but exceptionally difficult to read. I know some people like using plain ol html, but just a few lines of CSS would vastly improve the reading experience. I know its from 2016, but still.

Eyes read best when content is a few hundred pixels long. Content should be centered etc.

It's pretty terrible as it is

Re:I could do that in a weekend (2016) by forgotmypw17 on Tuesday August 24, 2021 @01:54PM (#28292540)
One of the nice things about HTML/CSS is that there's such a thing as "user styles", which can apply on top (or instead of) the "author styles".

Opera pioneered this interface, AFAIK, and even had one-click toggle buttons for both author and user styles (as well as images), but most of today's browsers don't make this functionality transparent and available. I suppose you could do via dev tools?

For a simple change like what you're asking, perhaps even changing browser's font settings would suffice?

Re:I could do that in a weekend (2016) by MonkeyClub on Tuesday August 24, 2021 @02:40PM (#28293075)
Yep it was pretty horrible, so I hit reader mode that narrowed everything down and increased the font size.

I find it's quite a bother to have to do all the CSS necessary for good reflow on a number of devices, so I too just have everything just spill to the ends, and just do reader mode on devices. But I don't really know much CSS apart from the really basic stuff, and haven't ever sat down to see how it would be done.

Re:I could do that in a weekend (2016) by bern4444 on Tuesday August 24, 2021 @03:24PM (#28293653)
Yeah, for a site like this, it could literally be just adding

max-width: 700px; margin: 0 auto;

This would make it look great on pretty much all screens.

Re:I could do that in a weekend (2016) by bzbarsky on Tuesday August 24, 2021 @07:30PM (#28296290)
A 700px max-width would actually make it quite annoying to read for me (as a lot of content on the web is, unless I switch to reader mode)....
Re:I could do that in a weekend (2016) by bern4444 on Tuesday August 24, 2021 @11:21PM (#28297723)
Why? Is it not wide enough for you? or something else?
Re:I could do that in a weekend (2016) by bzbarsky on Wednesday August 25, 2021 @11:03AM (#28302524)
Yes, it's not wide enough.

Just holding up a book to my screen, 700px is about the width of the text in a mass-market paperback. But the reading distance for a screen is much larger than the reading distance for a book, of course. And hardcovers or trade paperbacks have wider text columns than that, of obviously, and are generally somewhat nicer to read than mass-market paperbacks... though also often get held at slightly larger reading distances.

Re:I could do that in a weekend (2016) by bern4444 on Wednesday August 25, 2021 @04:17PM (#28306379)
Right.

You hold a book closer to your eyes though than your screen.

Both have about the same line length, as you point out, but the book's font is smaller. The website font is much larger - to make up for the greater distance between the screen and your eyes.

I think 700px would be wide enough, 800px would also work.

From what I've read, going wider than about this at around a 14px size font and it becomes increasingly difficult for the eye to track between lines.

On a phone, a max with of 700 or 800 px obviously wouldn't apply since the phone screen is smaller.

On this site, I usually zoom in to 150% to 200% on my computer to make the font size large enough to comfortably read.

Re:I could do that in a weekend (2016) by bzbarsky on Wednesday August 25, 2021 @09:32PM (#28309504)
> but the book's font is smaller.

If the book's font is smaller, but the lines are the same width, that means more words per line in the book, yes?

And each line is taking a larger fraction of the visual field, since the book is closer to my eyes.

Basically, if we assume books are somewhat optimized for ease of reading (and to a large extent they are), websites should be aiming for the same angular sizes as books. The reading distance is larger, so the physical sizes should be larger: larger fonts and wider lines...

Re:I could do that in a weekend (2016) by ivanalejandro0 on Tuesday August 24, 2021 @04:10PM (#28294304)
If you use Firefox, there's the "reader view" feature that kinds of do what you want for a great number of websites. See: https://support.mozilla.org/en-US/kb/firefox-reader-view-clu...
Re:I could do that in a weekend (2016) by nmz on Tuesday August 24, 2021 @01:56PM (#28292572)
get stylish then