Created
March 8, 2018 14:39
-
-
Save zubaer-ahammed/d90a874f76393b00b7c4320115033f97 to your computer and use it in GitHub Desktop.
Frequently used flex css classes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.flex { | |
display: flex; | |
display: -webkit-flex; | |
display: -moz-flex; | |
} | |
.flex-row { | |
flex-direction: row; | |
} | |
.flex-column { | |
flex-direction: column; | |
} | |
.flex-center { | |
align-items: center; | |
justify-content: center; | |
} | |
.flex-row-center{ | |
flex-direction: row; | |
justify-content: center; | |
} | |
.flex-column-center{ | |
flex-direction: column; | |
align-items: center; | |
} | |
.flex-grow { | |
flex-grow: 1; | |
} | |
.flex-wrap { | |
flex-wrap: wrap; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment