Skip to content

[css-multicol] allow percentages for column-gap #1321

Description

@chharvey

Please allow percentage values for column-gap. An example use case would be:

.article {
  column-count: 3; /* each 30% */
  column-gap: 5%;
}

'Percentages' would be from the calculated width of the containing block.

Links

As I understand it, percentages are not allowed on column-width because using column-count is preferred for a fluid layout. This makes sense, and I agree, but it sounds like a case of "we're disallowing this feature because it's bad practice." I'm not sure how that fits into CSSWG principles. Furthermore, column-width still allows vw units, which can be used to achieve (approximately) the same effect as percentages.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions