Skip to content

Instantly share code, notes, and snippets.

View onero's full-sized avatar

Adam Hansen onero

View GitHub Profile
@onero
onero / center-align.scss
Created April 10, 2019 17:04 — forked from arup-b/center-align.scss
Centering elements (other than texts) inside a <ion-col></ion-col> is painful. Apply the following CSS in your respective component level scss or global theme to align items centrally.
.center{
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;