News for hackers. Stuff that matters.
Re:The least amount of CSS for a decent looking site (2023) by geokon on Monday October 06, 2025 @11:43PM (#45499184)
you can also just display text with multicolumn.

solves the paragraph width "usability" and uses the full screen space

not sure why its never used.. I also really dislike the current trend of giant white sidebars

Re:The least amount of CSS for a decent looking site (2023) by shdon on Tuesday October 07, 2025 @12:15AM (#45499331)
Because it would make scrolling more frequent? For multicolumn text to reduce scrolling, the column height would have to match the available viewport height. And if your text exceeds what can fit in multiple columns on a single screenful, scrolling also becomes awkward, because you'd have to scroll exactly to the next screenful to have any consistency. Multiple text columns only make sense on extremely restricted layouts, or where the volume are entirely independent instead of a single flowing piece of text, or where there is still a direct horizontal relationship (like annotations or translations beside the main text).
Re:The least amount of CSS for a decent looking site (2023) by wtallis on Tuesday October 07, 2025 @12:58AM (#45499518)
> And if your text exceeds what can fit in multiple columns on a single screenful, scrolling also becomes awkward, because you'd have to scroll exactly to the next screenful to have any consistency.

That used to be a solved problem, before every website started to include multiple oversized "dickbars" floating over the real content and taking up 15+% of the available vertical space. Pressing the "Page Down" button on a keyboard would scroll down by exactly one screenfull. We also used to have scrollbars that on most operating systems would let you scroll down by exactly one screenfull with a single click.

Re:The least amount of CSS for a decent looking site (2023) by andai on Tuesday October 07, 2025 @01:46AM (#45499743)
>you'd have to scroll exactly to the next screenful to have any consistency.

Or to the right. (That might be even worse though, I don't know.)

Re:The least amount of CSS for a decent looking site (2023) by zelphirkalt on Tuesday October 07, 2025 @04:03AM (#45500551)
Interesting idea. Maybe we could have a standard action of moving one column further.
Re:The least amount of CSS for a decent looking site (2023) by geokon on Tuesday October 07, 2025 @04:05AM (#45500567)
oh good question

i have never hit this issue bc you need a massive amount of text to fill the whole screen. I have some natural breaks and subheaders. Each section is wrapped in its own columns

Re:The least amount of CSS for a decent looking site (2023) by hiAndrewQuinn on Tuesday October 07, 2025 @12:14AM (#45499325)
It's a little annoying to change from 3 to 2 to 1 columns when someone does resize, though. I just let people resize the window itself on my blog if they want to compress the text down.
Re:The least amount of CSS for a decent looking site (2023) by handsclean on Tuesday October 07, 2025 @02:05AM (#45499841)
I want this and am eventually going to try harder to implement it, but the reason is basically because CSS can’t do it. What do you do when you still have more content than fits on the screen? If you just stick with default CSS behavior and make the columns taller than the screen, now you’re scrolling all over the place constantly, it sucks. If you add more columns off to the right, you already probably need to use JS for layout, and it still isn’t nice on desktop, you need to scroll more for each bit of content and most desktops don’t have intuitive side scrolling controls. What you want is viewport-sized “pages” with a dynamic number of columns per page, but this is basically a whole extra layout mode that you need to implement in JS. There was a whole project to let JS plug into the layout engine better, I think it’s stalled now, I don’t know if it got far enough. Then there’s the weird bottom right -> scroll -> top left jump, you probably want to implement a hint or UI there, maybe even column to column since we’re breaking norms here. Scroll snapping is thankfully in CSS now, so we don’t have to worry about scrolling precisely to the next screenful, but we do cost people the ability to put what they want where they want it within the viewport. You’ll need to implement something to make anchor links work again, users can no longer just look at the top of the page. Everything’s going to go nuts when users resize the window, and maybe even more nuts due to browser attempts to keep them “in the same place”, you need to make it some semblance of ok. As soon as you want something non-text your columns will be too narrow, so you’re really going to have to implement complex column-spanning stuff off the bat. CSS thankfully has tools for controlling things like “don’t split this across columns”, but I bet they’ll prove inadequate if you dig into it. You’ve also reduced linearity, it’s now much less true that what’s above is before and what’s before is above, etc.

I’m still interested in this layout, but that’s why nobody does it: it’s far more complex from the web dev’s perspective, bad if not executed perfectly, and still has downsides even if perfect.

I think it’s still popular in places where the viewport size and content are both known at design time.

Re:The least amount of CSS for a decent looking site (2023) by zelphirkalt on Tuesday October 07, 2025 @04:05AM (#45500564)
I find shift + scroll quite intuitive. Works on almost everything where there is a horizontal scrollbar.
Re:The least amount of CSS for a decent looking site (2023) by Tistron on Tuesday October 07, 2025 @02:56AM (#45500123)
I remember somebody championing css features, I think Adobe, to make it possible to have overflowing content spill over into another container, like it is (was?) possible to do in Publisher. I'd love something like that, and have wanted it several times. But it was abandoned...
Re:The least amount of CSS for a decent looking site (2023) by handsclean on Tuesday October 07, 2025 @03:36AM (#45500382)
Never knew that. I think that in combination with CSS grid auto fill, that may have solved a huge chunk of paged columns.