I have an ionic item in an ionic list. What is the best way to left align the first text and right align the second text?
<div class="item">
<span>first</span>
<span>second</span>
</div>
Horizontal alignment determines how the left and right edges of a paragraph fit between the margins, while vertical alignment determines the placement of the text between the upper and lower margins.
You can add between the two buttons. Save this answer.
The text-align property specifies the horizontal alignment of text in an element.
I use Ionic 3 and the best anwser I think is to use the ionic tags and attributes:
<ion-list>
<ion-item>
<ion-label>
this to the left
</ion-label>
<ion-label text-right>
this to the right
</ion-label>
</ion-item>
</ion-list>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With