News for hackers. Stuff that matters.
Re:How I do my computing by kauffj on Sunday May 17, 2015 @11:31AM (#9560377)
Agreed, but a max-width on the content would do wonders for readability.
Re:How I do my computing by 205guy on Sunday May 17, 2015 @09:58PM (#9562560)
Wonders for YOUR readability. Other people have different viewports and screen sizes/resolutions and that would most likely interfere with some of them. Some people might even prefer dense text and long lines (doesn't bother ME).

As others have pointed out, you should be able to adjust your browser to get the reading experience you want. Turn your tablet vertically if reading in landscape. Open current tab in new window and make it as narrow as you want. Or have smart browser extensions that do it automatically for YOU.

Re:How I do my computing by dredmorbius on Monday May 18, 2015 @05:26AM (#9563471)
Define the width in em units. Max width of 30-45em is usually ideal. A 2-4em padding keeps text out of the gutters entirely.

Browsers used to have controls to toggle CSS stylesheets on or off. Frankly, I'd prefer they still did.

Re:How I do my computing by dkersten on Sunday May 17, 2015 @12:58PM (#9560717)
And bigger font size. Luckily, because of his minimal style, zooming works perfectly fine, unlike some media-rich sites. :)
Re:How I do my computing by Symbiote on Sunday May 17, 2015 @07:41PM (#9562216)
A little Javascript bookmarklet should do that nicely. I'll write one tomorrow, if I don't find one.
Re:How I do my computing by dzhiurgis on Monday May 18, 2015 @07:11AM (#9563734)
I was experimenting with HN and for some reason this only works in console

> javascript:document.getElementById("hnmain").width="50%"

Re:How I do my computing by dzhiurgis on Tuesday May 26, 2015 @07:42PM (#9608384)
Can't edit old comment. Made it work as a bookmarklet with following code:

javascript:(function(){document.getElementById("hnmain").width="50%"})();

Re:How I do my computing by Buge on Sunday May 17, 2015 @09:09PM (#9562438)
You had better license it as free software.
Re:How I do my computing by Symbiote on Monday May 18, 2015 @07:59AM (#9563886)
Is CC0 OK?

http://git.io/vTmEc

I'm not sure if HN will accept the link:

<a onclick="alert('Drag this link to your bookmarks bar'); href="javascript:(function(){var body = document.getElementsByTagName('body')[0];var style = body.style;var ss = [55,34,21,13,8];var sx = ('bodyMaxWidthIndex' in body) ? body.bodyMaxWidthIndex : 1;style.setProperty('max-width', ss[++sx % ss.length]+'cm', 'important');style.setProperty('line-height', '1.5');style.setProperty('margin-left', 'auto');style.setProperty('margin-right', 'auto');style.setProperty('font-family', 'sans-serif');body.bodyMaxWidthIndex = sx;})();">&#x2192;&#x1f5ba;&#x2190;</a>

Re:How I do my computing by collinmanderson on Monday May 18, 2015 @11:58AM (#9565140)
body { max-width: 800px; line-height: 1.5; font-size: 1.5em; margin: auto; }

Maybe add in the trendy color: #222.

Re:How I do my computing by sampo on Sunday May 17, 2015 @01:11PM (#9560754)
> max-width on the content would do wonders for readability.

Or you can resize your window?

Re:How I do my computing by alkonaut on Sunday May 17, 2015 @03:46PM (#9561447)
Feels a bit silly to resize a 20-tab browser window because one site failed to have proper content width. I'm very happy with having a 1920px maximized browser window. I don't like having non-maximized windows (in windows), it's just clumsy without a good layout system. You can have windows snapped at half width but I also want content centered on the screen.

So no: failing to set max width on a web page is not a good way to just present a clean page of information rather than an experience. It's just a bad webpage.

Re:How I do my computing by sampo on Sunday May 17, 2015 @05:05PM (#9561691)
You are spending 100s of seconds reading a webpage, so spending 1 second to resize the text width to your liking is a very small overhead.
Re:How I do my computing by alkonaut on Sunday May 17, 2015 @05:09PM (#9561704)
For a longform page it may be worth doing for readability, but the whole idea of fiddling with the borders of my browser window (which is shared between all the tabs) back and forth as I switch tabs is silly.
Re:How I do my computing by mahouse on Sunday May 17, 2015 @01:19PM (#9560791)
Or you can resize the screen of your phone with your fingers?
Re:How I do my computing by tedunangst on Sunday May 17, 2015 @04:39PM (#9561626)
And constantly pan left and right? Pass.
Re:How I do my computing by vollmond on Monday May 18, 2015 @08:49AM (#9564095)
I think he was being facetious (pointing out that "resize your browser window" isn't really an option on most mobile devices).
Re:How I do my computing by s73v3r on Sunday May 17, 2015 @06:21PM (#9561959)
That's a terrible idea, because most of the other tabs I have open in my browser fit just fine with the size I have the window at.