简体   繁体   中英

cant align md-button to the left

Im using material design and I want a button to go left, so from what I saw I should add layout-align like this:

<button md-button (click)="someFunc()" class="md-primary" layout-align="end center">Sort</button>

but this didn't do the trick, do you see the issue?

Adding attribute layout-align, css will be applied to its children element.

So you can try this to place your button to left side

<div class="start" layout="row" layout-align="start center">
  <md-button ng-click="someFunc()"  class="md-primary">Start</md-button>
</div>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM