1
I started my studies with Ionic 2 these days and I’m not able to align the text of the Ionic buttons to right or left, it is only in the center.
1 - I tried to use the markup informed in the Ionic Doc (text-left, text-right), I was unsuccessful;
2 - I tried to use css, but unsuccessfully :
text-align: right; text-align: -moz-right; text-align: -webkit-right;
3 - I added crosswalk-webview to no avail;
4 - I tried to change HTML, unsuccessfully :
<ion-content text-left>
<ion-col text-left>
<ion-row text-left>
<button ion-button icon-left text-left class="buttons" >Para gerar a vida</button>
</ion-row>
</ion-col>
</ion-content>
<ion-content text-left>
<div text-left>
<p text-left>
<button ion-button icon-left text-left class="buttons" >Para gerar a vida</button>
</p>
</div>
</ion-content>
<ion-content text-left>
<div text-left>
<p text-left>
<button ion-button icon-left text-left class="buttons" ><p text-left>Para gerar a vida </p></button>
</p>
</div>
</ion-content>
Would anyone know where I’m going wrong ?
Harlan, I recommend that you re-edit your question and remove the part you added stating how to resolve the issue. Instead, turn it into an answer. So other users who may face the same problem can find the answer more easily.
– celsomtrindade
Celsom, as I cannot accept my own answer as the solution to the problem, I only added the new information I got in the description of the problem. Thanks for the information.
– Harlan Gomes Nascimento
But you can accept, but you have to wait a while ;)
– celsomtrindade
Good to know, vlw :P
– Harlan Gomes Nascimento