# How to change the avatar alignment left to center

**URL:** <https://forum.ionicframework.com/t/how-to-change-the-avatar-alignment-left-to-center/131404>\
**Category:** ionic-v3\
**Created:** [May 26, 2018, 7:46am UTC](https://forum.ionicframework.com/t/how-to-change-the-avatar-alignment-left-to-center/131404 "2018-05-26T07:46:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![flycoders\_sourav](https://avatars.discourse-cdn.com/v4/letter/f/e47c2d/32.png) [@flycoders\_sourav](https://forum.ionicframework.com/u/flycoders_sourav)\
**Post date:** [May 26, 2018, 7:46am UTC](https://forum.ionicframework.com/t/how-to-change-the-avatar-alignment-left-to-center/131404/1 "2018-05-26T07:46:33Z")

</div>

How to change the avatar alignment left to center  
below my html code

```auto
<ion-card>
  <ion-item style="text-align: center">
  	<div style="text-align: center">
    <ion-avatar>
      <img src="http://m.blog.hu/fo/fotovideo/image/foto-bevezeto.jpg" style="text-align: center">
    </ion-avatar>
  </div>
    <p>November 5, 1955</p>
    <p>November 5, 1955</p>
  </ion-item>
</ion-card>

```

![Screen%20Shot](https://global.discourse-cdn.com/ionicframework/original/3X/0/c/0c90edbd3dda805e3df082f4a9a7df52a4495934.jpg)  
i want to change the left alignment to center . like my red round  
how can i do that  
please help me out  
Thanks

---

<div class="post-metadata">

**Author:** ![robinyo](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/robinyo/32/115964_2.png) [@robinyo](https://forum.ionicframework.com/u/robinyo)\
**Post date:** [May 26, 2018, 7:58am UTC](https://forum.ionicframework.com/t/how-to-change-the-avatar-alignment-left-to-center/131404/2 "2018-05-26T07:58:17Z")

</div>

To center an image:

```auto
<ion-content>

  <ion-card>

    <ion-card-content>

      <ion-thumbnail>
        <img src="{{'assets/data/labels/' + beer.label}}">
      </ion-thumbnail>

      <ion-card-title text-center>
        <strong>{{beer.name}}</strong>
        <p>{{beer.style}}</p>

        ...

      </ion-card-title>

      <p>{{beer.description}}</p>

      </ion-row>

        ...

      </ion-row>

    </ion-card-content>

  </ion-card>

  ...

</ion-content>

```

For example:

 ![59](https://global.discourse-cdn.com/ionicframework/original/3X/2/d/2dad0f2da1200e7315e29f0682d2d451fe801e59.png)

---

<div class="post-metadata">

**Author:** ![umerf6455](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/umerf6455/32/147397_2.png) [@umerf6455](https://forum.ionicframework.com/u/umerf6455)\
**Post date:** [May 26, 2018, 10:18am UTC](https://forum.ionicframework.com/t/how-to-change-the-avatar-alignment-left-to-center/131404/3 "2018-05-26T10:18:23Z")

</div>

Hey @flycoders_sourav, use this code. Hope it’ll solve your problem:

```auto
<ion-card>
  <ion-item style="text-align: center">
  	<div align="center"> //this line has been changed
    <ion-avatar>
      <img src="http://m.blog.hu/fo/fotovideo/image/foto-bevezeto.jpg" style="text-align: center">
    </ion-avatar>
  </div>
    <p>November 5, 1955</p>
    <p>November 5, 1955</p>
  </ion-item>
</ion-card>

```

---

<div class="post-metadata">

**Author:** ![mhartington](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mhartington/32/137757_2.png) [@mhartington](https://forum.ionicframework.com/u/mhartington)\
**Post date:** [July 19, 2021, 9:34pm UTC](https://forum.ionicframework.com/t/how-to-change-the-avatar-alignment-left-to-center/131404/4 "2021-07-19T21:34:45Z")

</div>

Closed on July 19, 2021, 9:34pm UTC


