Skip to content

Instantly share code, notes, and snippets.

@wcxaaa
Created December 15, 2017 08:06
Show Gist options
  • Save wcxaaa/159ee9e18e890b052482c16cd3046786 to your computer and use it in GitHub Desktop.
Save wcxaaa/159ee9e18e890b052482c16cd3046786 to your computer and use it in GitHub Desktop.
CSS - description page div align parent left or right
@media only screen and (min-width: 992px) {
.flex-left {
display: flex;
flex-direction: row;
}
.flex-right {
// usage e.g.: div align right.
// can also replace Bootstrap col-md-push and col-md-pull back in bootstrap 3
display: flex;
flex-direction: row-reverse;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment