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

Re: [csswg-drafts] [css-grid] `auto-fit` behaves like `auto-fill` if an element spans all columns or rows

From: Tab Atkins Jr. via GitHub <sysbot+gh@w3.org>
Date: Fri, 27 Jul 2018 18:05:07 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-408495968-1532714707-sysbot+gh@w3.org>
There is, kinda - if you make the element `position:absolute`, you can still use the grid-positioning properties to set it up into a particular grid area, then use `top:0`/etc to make it fill the whole grid area.  It's not counted as a grid item then. However, *because* it's not a grid item, it's also not considered when the grid layout algorithm runs, so CSS won't ensure that the tracks it crosses are large enough to fit its content.

It's not completely clear to me from your example what you were actually wanting, tho - was it that you wanted the tabs to completely fill their row, so with two tabs each was 50% of the screen, etc?

-- 
GitHub Notification of comment by tabatkins
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2956#issuecomment-408495968 using your GitHub account
Received on Friday, 27 July 2018 18:05:12 UTC

This archive was generated by hypermail 2.3.1 : Thursday, 19 September 2019 01:19:00 UTC