Mark Wong
Posts: 0
Joined: Sat Feb 14, 2015 7:47 am

How to vertically center align component in AngularJS

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?

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

How to vertically center align component in AngularJS

Hello Mark,

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

Mark Wong
Posts: 0
Joined: Sat Feb 14, 2015 7:47 am

How to vertically center align component in AngularJS

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?

Mark Wong
Posts: 0
Joined: Sat Feb 14, 2015 7:47 am

How to vertically center align component in AngularJS

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

Return to “Issues”