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

Re: [csswg-drafts] [css-grid-2] Ability for grid items to automatically span rows and columns based on content size (#1373)

From: lukewhitmore via GitHub <sysbot+gh@w3.org>
Date: Tue, 02 Apr 2019 14:59:11 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-479036862-1554217150-sysbot+gh@w3.org>
I've managed to achieve this by:

- lining up my grid item, using CSS Grids; 
- providing a 'position: relative' on the same item to reset origin
- ... then providing a 'position: absolute' an an inner direct descendent container, to allow the contents to break out of the constraints set by the grid.

It works well for my use-case. YMMV.

GitHub Notification of comment by lukewhitmore
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1373#issuecomment-479036862 using your GitHub account
Received on Tuesday, 2 April 2019 14:59:12 UTC

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