Skip to main content
edited body; edited title
Source Link
Michael Benjamin
  • 375.5k
  • 110
  • 616
  • 737

how How to pointspan to the last column in an implicid Gridimplicit grid?

I want an item to start at the first column and end at the last column., no matter how many columns there are.

It should work like this:

item { grid-column-start: 1; grid-column-end: -1; } 

according to MDN:

Contributes the nth grid line to the grid item’s placement. If a negative integer is given, it instead counts in reverse, starting from the end edge of the explicit grid.

So this would only work on explicit grids? Why shouldn't it work on implicit grids?

how to point to the last column in an implicid Grid?

I want an item to start at the first column and end at the last column. no matter how many columns there are.

It should work like this:

item { grid-column-start: 1; grid-column-end: -1; } 

according to MDN:

Contributes the nth grid line to the grid item’s placement. If a negative integer is given, it instead counts in reverse, starting from the end edge of the explicit grid.

So this would only work on explicit grids? Why shouldn't it work on implicit grids?

How to span to the last column in an implicit grid?

I want an item to start at the first column and end at the last column, no matter how many columns there are.

It should work like this:

item { grid-column-start: 1; grid-column-end: -1; } 

according to MDN:

Contributes the nth grid line to the grid item’s placement. If a negative integer is given, it instead counts in reverse, starting from the end edge of the explicit grid.

So this would only work on explicit grids? Why shouldn't it work on implicit grids?

Source Link
loominade
  • 1.1k
  • 1
  • 12
  • 22

how to point to the last column in an implicid Grid?

I want an item to start at the first column and end at the last column. no matter how many columns there are.

It should work like this:

item { grid-column-start: 1; grid-column-end: -1; } 

according to MDN:

Contributes the nth grid line to the grid item’s placement. If a negative integer is given, it instead counts in reverse, starting from the end edge of the explicit grid.

So this would only work on explicit grids? Why shouldn't it work on implicit grids?