I have a CSS class called .text-align-center
that I used to center text.
.text-align-center {
text-align:center;
}
However, I noticed that when there is a left or right arrow icon within the <div>
, the text does not appear perfectly centered.
Is it possible to adjust the centering so that it ignores the arrow icons?
EDIT:
Below is my HTML code where the text is slightly off center due to the presence of an arrow icon:
<ion-view>
<ion-content class="padding">
<div ng-click="okDate(unreported)" class="item item-text-wrap item-icon-right text-align-center">
{{ formattedRecentDate(unreported) }}
<i class="icon ion-ios-arrow-forward"></i>
</div>
</ion-content>
</ion-view>