Skip to content

CSS Grid use of CSS variables #164

Description

@Illustrissimus-1

Can CSS variables be used with CSS Grid? In the example below replacing var(--itemsCount) with an integer works OK.

.container { display:grid; grid-gap:10px;
grid-template-columns:repeat(var(--itemsCount),43px 43px 43px 43px);
grid-auto-rows:75px; }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions