Skip to content

Instantly share code, notes, and snippets.

@rgoj
Last active December 21, 2018 13:54
Show Gist options
  • Save rgoj/d15ec8dfa8fc34c5b471fc3557f80cf3 to your computer and use it in GitHub Desktop.
Save rgoj/d15ec8dfa8fc34c5b471fc3557f80cf3 to your computer and use it in GitHub Desktop.
<!-- Basic two column layout -->
<div style="display: flex; flex-flow: row">
<div style="width: 50%">
Content of column one
</div>
<div style="width: 50%">
Content of column one
</div>
</div>
<!-- The relative widths of the columns can be adjusted -->
<div style="display: flex; flex-flow: row">
<div style="width: 70%">
Content of column one
</div>
<div style="width: 30%">
Content of column two
</div>
</div>
<!-- Additional columns can also be added -->
<div style="display: flex; flex-flow: row">
<div style="width: 33.33%">
Content of column one
</div>
<div style="width: 33.33%">
Content of column two
</div>
<div style="width: 33.33%">
Content of column three
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment