# How do I Set cards alignment in Android Anki?

**URL:** <https://forums.ankiweb.net/t/how-do-i-set-cards-alignment-in-android-anki/21185>\
**Category:** Help\
**Created:** [July 4, 2022, 5:24am UTC](https://forums.ankiweb.net/t/how-do-i-set-cards-alignment-in-android-anki/21185 "2022-07-04T05:24:53Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hantu](https://avatars.discourse-cdn.com/v4/letter/h/839c29/32.png) [@Hantu](https://forums.ankiweb.net/u/Hantu)\
**Post date:** [July 4, 2022, 5:24am UTC](https://forums.ankiweb.net/t/how-do-i-set-cards-alignment-in-android-anki/21185/1 "2022-07-04T05:24:53Z")

</div>

Whenever I put up new card on ankidroid, it always center-aligned. I need it Left-aligned, how to do it?

Must I do it one by one?

---

<div class="post-metadata">

**Author:** ![BlackBeans](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/blackbeans/32/2283_2.png) [@BlackBeans](https://forums.ankiweb.net/u/BlackBeans)\
**Post date:** [July 4, 2022, 6:14am UTC](https://forums.ankiweb.net/t/how-do-i-set-cards-alignment-in-android-anki/21185/2 "2022-07-04T06:14:00Z")

</div>

This kind of styling is controlled with [CSS](https://en.wikipedia.org/wiki/CSS), and more specifically the [text-align](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align) attribute.

---

<div class="post-metadata">

**Author:** ![Hantu](https://avatars.discourse-cdn.com/v4/letter/h/839c29/32.png) [@Hantu](https://forums.ankiweb.net/u/Hantu)\
**Post date:** [July 5, 2022, 12:27am UTC](https://forums.ankiweb.net/t/how-do-i-set-cards-alignment-in-android-anki/21185/3 "2022-07-05T00:27:04Z")

</div>

Where to put those code on ankidroid?

---

<div class="post-metadata">

**Author:** ![BlackBeans](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/blackbeans/32/2283_2.png) [@BlackBeans](https://forums.ankiweb.net/u/BlackBeans)\
**Post date:** [July 5, 2022, 5:39am UTC](https://forums.ankiweb.net/t/how-do-i-set-cards-alignment-in-android-anki/21185/4 "2022-07-05T05:39:52Z")

</div>

Go in _Browser_, select a card, scroll down, click on _Cards: Card 1, …_, then on _CSS_ at the bottom right. Some code should be already present, don’t overwrite it, just add your own at the bottom. You have to do this for every note **type** , not for every note.

---

<div class="post-metadata">

**Author:** ![kleinerpirat](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/kleinerpirat/32/19863_2.png) [@kleinerpirat](https://forums.ankiweb.net/u/kleinerpirat)\
**Post date:** [July 5, 2022, 6:00am UTC](https://forums.ankiweb.net/t/how-do-i-set-cards-alignment-in-android-anki/21185/5 "2022-07-05T06:00:28Z")

</div>

If you’re wondering which CSS to add, you could set the text-align property like this:

```auto
.card {
  text-align: left;
}

```

It will be set to `center` by default. Just change it to `left` (or `start`):

 ![Screenshot_20220705-075726__01](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/2X/c/ca7723f77896199bc6cfde6016499c3e6db5fdd6.jpeg)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/1X/8f1279ababc5879d54e4838989f606cfe55af8c7.jpeg) [@system](https://forums.ankiweb.net/u/system)\
**Post date:** [May 1, 2023, 3:08am UTC](https://forums.ankiweb.net/t/how-do-i-set-cards-alignment-in-android-anki/21185/6 "2023-05-01T03:08:17Z")

</div>


