I am trying to use the center layout-align = "center center", which should align the content in the center both vertically and horizontally. But it only aligns the content horizontally, not vertically.
Here is the plnkr link of the code I'm trying to do.
<body ng-app="app" ng-controller="appCtrl"> <md-toolbar> <div class="md-toolbar-tools"> <h2 flex>Hello Angular-material!</h2> </div> </md-toolbar> <div class="flexbox-parent"> <div layout="row" layout-align="center center"> <div flex="15">First line</div> <div flex="15">Second line</div> </div> </div> </body>
html angularjs css material-design angular-material
Prabhdeep
source share