Skip to content

Instantly share code, notes, and snippets.

@flpwgr
Created October 10, 2014 13:11
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save flpwgr/5d4431fd7e363cb3a599 to your computer and use it in GitHub Desktop.
Save flpwgr/5d4431fd7e363cb3a599 to your computer and use it in GitHub Desktop.
Vertical align for ion-content
/* Vertically aling on ion-content */
.center {
border: 1px solid red;
display: -webkit-box;
display: -moz-box;
display: -ms-flexbox;
display: -webkit-flex;
display: flex;
-webkit-box-direction: normal;
-moz-box-direction: normal;
-webkit-box-orient: horizontal;
-moz-box-orient: horizontal;
-webkit-flex-direction: row;
-ms-flex-direction: row;
flex-direction: row;
-webkit-flex-wrap: nowrap;
-ms-flex-wrap: nowrap;
flex-wrap: nowrap;
-webkit-box-pack: center;
-moz-box-pack: center;
-webkit-justify-content: center;
-ms-flex-pack: center;
justify-content: center;
-webkit-align-content: stretch;
-ms-flex-line-pack: stretch;
align-content: stretch;
-webkit-box-align: center;
-moz-box-align: center;
-webkit-align-items: center;
-ms-flex-align: center;
align-items: center;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment