How to align text in the center of a card?

Asked

Viewed 3,687 times

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>

1 answer

4


I found this reply here at the SO-English. Just add text-center in your div.

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

  • Thanks @Marconi I was trying item-text-center but now it worked blah.

  • 1

    @Fernandopaiva quiet, glad I could help :).

Browser other questions tagged

You are not signed in. Login or sign up in order to post.