I have a simple 4 column grid where I want most of the content to fall within the named column area in the middle.
Is it possible to adjust the column span of a grid item so that they take 1fr and line up in a row, but still only within the central area? [list] [*]I would like to do this without adding additional wraps [*]There are items not shown here that make use of the wider parts of the grid. [*]There is a variable amount of items that may or may not have the 'small' class, and should remain in order. [/list] HTML
[code] Item
Item
Item [/code] CSS
[code].grid { display:grid; grid-template-columns: [grid-start] 1fr [content-start] 1fr 1fr [content-end] 1fr [grid-end] ; } .grid p { grid-column:content; } .grid .small { grid-column:content / span 1; } [/code] So the grid would look something like this: [img]https://i.stack.imgur.com/o142G.png[/img]