Page 1 of 1

How to vertically center align component in AngularJS

Posted: Thu Dec 10, 2015 5:12 pm
by Mark Wong

I would like to set a input component at the middle of the page.
I have tried used ng-style: {'top':'50%'}, etc
any suggestion?


How to vertically center align component in AngularJS

Posted: Fri Dec 11, 2015 1:20 pm
by Evgene Karachevtsev

Hello Mark,

Please look at this link, information there should be useful:
https://blog.appery.io/2015/12/develo...


How to vertically center align component in AngularJS

Posted: Fri Dec 11, 2015 1:52 pm
by Mark Wong

Yes it helped, but the components are floating on the page in front of others.

I would like to achieve all the components are center-align followed by each other.

So is there something like spacer in HTML5?


How to vertically center align component in AngularJS

Posted: Fri Dec 11, 2015 2:25 pm
by Mark Wong

I have put a grid with ng-style : {'height':'10vm'}
problem solved