How to align text in the center of a card?

4

I'm looking for a way to align the text of the card component in ionic. How to do this?

<div class="card">
          <div class="item item-image">
            <img ng-src={{imagem}} id="smallimage">
          </div>
          <div class="item item-divider">
            {{nome}}
          </div>                         
      </div>
    
asked by anonymous 14.12.2015 / 05:26

1 answer

4

I found this answer here in SO-English. Just add text-center to your div.

See the example of one of the answers applied to the search button.

    
14.12.2015 / 12:34