cssgrid-ama icon indicating copy to clipboard operation
cssgrid-ama copied to clipboard

Is there a way to make the last grid-item span all remaining columns?

Open coderEm opened this issue 8 years ago • 2 comments

Hello! I am trying to create a grid like structure with 12 columns and would like to add a possibility where a grid-item spans all remaining available columns in a row. If it is a single grid-item left in a row, it should span all of the width. And if possible, when there are 2 or more grid-items left in a row, they should grow in proportion to their span size.

Please see my example on CodePen https://codepen.io/emmapborgstrom/pen/YxrKNP

By the way I saw your talk on At The Frontend in Copenhagen 2016 and was very inspired!

coderEm avatar Aug 13 '17 19:08 coderEm

They'll probably need to add new keywords for this. Hopefully something that would do the same job for both grid and flexbox.

thinsoldier avatar Oct 03 '17 00:10 thinsoldier

@coderEm u find a solution?

gtkpr avatar Mar 17 '19 06:03 gtkpr