Skip to content

[css-grid] Issue 7 Add example of fixed size spanner getting extra space from content distribution #215

@rachelandrew

Description

@rachelandrew

11.5. Aligning the Grid

I was working on some examples and built this which may be a good example for this section.

gist
CodePen

I have a grid container sized in absolute units, with grid tracks also sized using absolute units. The sum of the tracks in both directions is smaller than the container.

Using the keyword values space-around and space-between increases the spacing between tracks. Any grid area that spans one of these gaps thus gains width or height as the space is added to the total width/height.

fixed-size-spanner-extra-space

Metadata

Metadata

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions