Skip to content

[css-grid] respect justify-content: center even when column width is fluid and has max-width using auto-fit/fill #10358

Open
@emattias

Description

To my knowledge you can't make css grid respect justify-content: center and also keep the fluid width and has max-width when using repeat(auto-fit/fill).

See this codepen. In the first grid the columns are left aligned. I would like them to be centered like in the second grid (since justify-content: center is set on the container).

This might be related to this issue: #2611

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