Created
March 6, 2017 21:38
-
-
Save johhansantana/8b8cc12599a6d8074aa5429149037b43 to your computer and use it in GitHub Desktop.
Easy flexbox predefined css
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 css start | |
*/ | |
.containerFlexRow { | |
display: flex; | |
flex-direction: row; | |
} | |
.wrapFlex { | |
flex-wrap: wrap; | |
} | |
.containerFlexCol { | |
display: flex; | |
flex-direction: column; | |
flex-wrap: wrap; | |
} | |
.flexStart { | |
justify-content: flex-start; | |
} | |
.flexCenter { | |
justify-content: center; | |
} | |
.flexEnd { | |
justify-content: flex-end; | |
} | |
.flexAround { | |
justify-content: space-around; | |
} | |
.flexBetween { | |
justify-content: space-between; | |
} | |
.alignStart { | |
align-items: flex-start; | |
} | |
.alignCenter { | |
align-items: center; | |
} | |
.alignEnd { | |
align-items: flex-end; | |
} | |
/** | |
Flex css end | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment