W3C home > Mailing lists > Public > public-css-archive@w3.org > March 2019

Re: [csswg-drafts] [css-multicol] Shouldn't column-fill: auto take min-height into account? (#3064)

From: BezPowell via GitHub <sysbot+gh@w3.org>
Date: Mon, 11 Mar 2019 18:35:01 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-471666605-1552329300-sysbot+gh@w3.org>
I'd just like to chime-in here and say that as a dev while I prefer the way that Firefox currently handles this I'd rather not have to set max-height to get columns to wrap. Most of the sites I work on being designed for less tech-savvy people, for me, the ideal situation would be that if I could set the styles on the container to something like:
```
column-count: 4;
column-fill: auto
min-height: 20em;
```

and any content would:

1. Fill a single column starting from the first until it reaches the min-height value.
2. Start filling the next column as soon as the current column has reached 20em.
3. Start balancing as soon as all 4 columns have reached min-height.

That way if the client only pastes in two sentences it will only fill 1 column. Or if they happen to insert the complete works of Shakespeare it will have 4 balanced columns without overflowing the container.

My only worry with having additional columns only start to fill when max-height has been reached will be that if the container happens to have a novels worth of text in it you'll get serious layout problems for anything following it and if no max-height is set all text will be forced into one very tall column.

Hopefully that makes sense, and if I have simply misunderstood the conversation so far and that is what has already been decided upon feel free to ignore me!


-- 
GitHub Notification of comment by BezPowell
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3064#issuecomment-471666605 using your GitHub account
Received on Monday, 11 March 2019 18:35:04 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:45 UTC