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

Re: [csswg-drafts] [css-flexbox] Max flex grow (#4143)

From: Tab Atkins Jr. via GitHub <sysbot+gh@w3.org>
Date: Tue, 23 Jul 2019 21:21:42 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-514388633-1563916900-sysbot+gh@w3.org>
I have an alternate solution for you: https://codepen.io/TabAtkins/pen/OKNPgE

The gist of it is that the nav is a grid, and each item is placed across three rows: `minmax(10px, 40px) auto minmax(10px, 40px)`. The `auto` column will size to the item's width, then the "side" columns will grow from 10px to 40px, depending on available space, all at the same rate.

You do have to predict how many items you'll have, but that's it.

-- 
GitHub Notification of comment by tabatkins
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4143#issuecomment-514388633 using your GitHub account
Received on Tuesday, 23 July 2019 21:21:43 UTC

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