Skip to content

Instantly share code, notes, and snippets.

@zastrow
Last active March 4, 2022 12:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save zastrow/a6a79b29d842a86e05c38be9519a9e0b to your computer and use it in GitHub Desktop.
Save zastrow/a6a79b29d842a86e05c38be9519a9e0b to your computer and use it in GitHub Desktop.
.layout-main {
display: inline-block;
display: flex;
display: grid;
width: 100%;
}
.layout-main__left {
float: left;
width: 75%;
}
.layout-main__right {
float: left;
width: 25%;
}
@supports (display: grid) {
.layout-main {
grid-template-columns: 75% 25%;
}
.layout-main__left,
.layout-main__right {
width: auto;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment