Skip to content

[css-grid] Setting of gutter properties when using the 'grid' shorthand #1036

Closed
@huijing

Description

@huijing

With reference to 7.8 Grid Definition Shorthand: the 'grid' property, which says

The grid property is a shorthand that sets all of the explicit grid properties (grid-template-rows, grid-template-columns, and grid-template-areas), all the implicit grid properties (grid-auto-rows, grid-auto-columns, and grid-auto-flow), and the gutter properties (grid-column-gap and grid-row-gap) in a single declaration.

The note below then states, “Also, the gutter properties are reset by this shorthand, even though they can’t be set by it.”

So, is it possible to set the gutter properties or not? If so, how? The grid-template syntax does not cater for setting of grid gaps.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions