Skip to content

[css-grid-1][css-grid-2] Basic support for "equal gutter" with justify-content on grid items #1116

@hunboy

Description

@hunboy

[css-grid-1][css-grid-2]
https://drafts.csswg.org/css-grid/#gutters

Motivation: the users often want equal (horizontally, vertically) gaps for stilistic reasons.

Currently the grid-row-gap doesn't support the equal value when justify-content is defined.

As a workaround I present 3 javascript algorythms to make equal gutter between the grid items when justify-content is defined.

(for testing resize the frame - the 100 value in the script is same as the grid-item's width, so it's hardcoded by constant)

Resolution: So some basic support would be good for gaps. Perhaps "grid-row-gap: auto", or some keyword to define equal gutter for the grid system.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions