# How to align my text

**URL:** <https://community.silverfin.com/t/how-to-align-my-text/1836>\
**Category:** Reports\
**Tags:** text-template\
**Created:** [July 1, 2020, 2:17pm UTC](https://community.silverfin.com/t/how-to-align-my-text/1836 "2020-07-01T14:17:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zena](https://avatars.discourse-cdn.com/v4/letter/z/e47c2d/32.png) [@Zena](https://community.silverfin.com/u/Zena)\
**Post date:** [July 1, 2020, 2:17pm UTC](https://community.silverfin.com/t/how-to-align-my-text/1836/1 "2020-07-01T14:17:05Z")

</div>

Hi everyone!

I have 2 questions about alignments.

1. I want to align my text in my text template to the right.

I have tried both of the following codes, but it is not working:  
**-\> {{ company.city | strip }}, {{ new\_date | date:"%d %B %Y" }}**  
AND  
**{{ company.city | strip }}, {{ new\_date | date:"%d %B %Y" }} \<-**

1. I also want to align my text in the center (which does work with the -\> + \<-), but I would also like to have a “tab” there, like in Word.  
that the centered text is starting at the same point at the page, but in the middle of the page.

I hope someone can help me out again!

---

<div class="post-metadata">

**Author:** ![borjaGonzalez](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.silverfin.com/borjagonzalez/32/825_2.png) [@borjaGonzalez](https://community.silverfin.com/u/borjaGonzalez)\
**Post date:** [July 2, 2020, 8:36am UTC](https://community.silverfin.com/t/how-to-align-my-text/1836/2 "2020-07-02T08:36:02Z")

</div>

> [@Zena](#):
>
> {{ company.city | strip }}, {{ new\_date | date:“%d %B %Y” }}

Hi Zena,

1. Regarding your first question, you can try putting the text on a table like this:

```auto
{% stripnewlines %}
{% newline %}
|--------:+
{% newline %}
| {{ company.city | strip }}, {{ new_date | date:"%d %B %Y" }}
{% endstripnewlines %}

```

1. In this case you can use the tables again and the indent function (choosing the level of indentation you want) in order to create a space similar to the tab in word, please see the below example:

```auto
{% stripnewlines %}
{% newline %}
|:--------:+
{% newline %}
| {::indent level="6"}Text Example{:/indent}
{% endstripnewlines %}

```

Hope that helps,  
Borja

---

<div class="post-metadata">

**Author:** ![Zena](https://avatars.discourse-cdn.com/v4/letter/z/e47c2d/32.png) [@Zena](https://community.silverfin.com/u/Zena)\
**Post date:** [July 7, 2020, 3:26pm UTC](https://community.silverfin.com/t/how-to-align-my-text/1836/3 "2020-07-07T15:26:50Z")

</div>

> [@borjaGonzalez](#):
>
> ```auto
> {% stripnewlines %}
> {% newline %}
> |:--------:+
> {% newline %}
> | {::indent level="6"}Text Example{:/indent}
> {% endstripnewlines %}
> 
> ```

Hi Borja

Thanks for the explanation.
