Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
.flex {
display: flex;
.align-center {
margin: auto;
align-self: center;
}
.align-left {
margin-right: auto;
align-self: center;
}
.align-right {
margin-left: auto;
align-self: center;
}
.align-x-center {
margin-right: auto;
margin-left: auto;
}
.align-x-left {
margin-right: auto;
}
.align-x-right {
margin-left: auto;
}
.align-y-center {
align-self: center;
}
.align-y-top {
align-self: flex-start;
}
.align-y-bottom {
align-self: flex-end;
}
}
@ghost

This comment has been minimized.

Copy link

commented Jul 30, 2018

Good

@RTAndrew

This comment has been minimized.

Copy link

commented Jul 30, 2018

Great job
Flex utilities is something I am missing after using Foundation.
And this solves it.

Thank you.

@hahuaz

This comment has been minimized.

Copy link

commented Apr 21, 2019

that's neat. thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.