Reputation: 47252
How do we align the text in an Angular Material button to the left?
This answer suggest text-align:left
?
And I tried it in this demo, however no love ...
Thoughts?
Upvotes: 5
Views: 2849
Reputation: 10856
Because .mdc-button
uses display: inline-flex;
you will have to use justify-content: flex-start;
to align the text to the left.
See below:
<button style="width: 10rem; justify-content: flex-start;" mat-raised-button>Basic</button>
Upvotes: 9