Skip to content

Static gutters using calc() #536

@lkmill

Description

@lkmill

Since margins are not part of border-box or content-box width, one simply can't set a percentage width along with a fixed gutter. However, should it not be possible to implement this with as such:

[span] {
    width: calc($percentage-width - $fixed-gutter-size);
    margin-right: $fixed-gutter-size;
}

... or would this not evenly distribute across differently spanning spans? (such as span(1 of 4) and spans(3 of 4).

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