Skip to content

Instantly share code, notes, and snippets.

@johhansantana
Created March 6, 2017 21:38
Show Gist options
  • Save johhansantana/8b8cc12599a6d8074aa5429149037b43 to your computer and use it in GitHub Desktop.
Save johhansantana/8b8cc12599a6d8074aa5429149037b43 to your computer and use it in GitHub Desktop.
Easy flexbox predefined css
/**
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