Skip to content

Instantly share code, notes, and snippets.

@hrdtbs
Last active November 3, 2017 09:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hrdtbs/5f1ea8716d962f0658f4e997eec13f05 to your computer and use it in GitHub Desktop.
Save hrdtbs/5f1ea8716d962f0658f4e997eec13f05 to your computer and use it in GitHub Desktop.
e
.column-reverse{
display: flex;
flex-wrap: wrap;
flex-direction: column-reverse;
}
.column{
display: flex;
flex-wrap: wrap;
flex-direction: column;
}
.row-left,
.row-reverse.row-right{
justify-content: flex-start;
}
.row-center{
justify-content: center;
}
.row-right,
.row-reverse.row-left{
justify-content: flex-end;
}
<div class="row-reverse">
<div class="cel">1</div>
<div class="cel">2</div>
<div class="cel">3</div>
<div class="cel">4</div>
</div>
.row-reverse{
display: flex;
flex-wrap: wrap;
flex-direction : row-reverse;
}
.row-top{
align-items: flex-start;
}
.row-middle{
align-items: center;
}
.row-bottom{
align-items: flex-end;
}
<div class="row">
<div class="cel">1</div>
<div class="cel">2</div>
<div class="cel">3</div>
<div class="cel">4</div>
</div>
.row{
display: flex;
flex-wrap: wrap;
flex-direction: row;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment