# Wordpress Block Attribute Rich Text Control Align problem

**URL:** <https://forum.pinegrow.com/t/wordpress-block-attribute-rich-text-control-align-problem/6955>\
**Category:** Pinegrow WP\
**Created:** [September 13, 2022, 5:24pm UTC](https://forum.pinegrow.com/t/wordpress-block-attribute-rich-text-control-align-problem/6955 "2022-09-13T17:24:39Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jorge](https://avatars.discourse-cdn.com/v4/letter/j/9fc29f/32.png) [@Jorge](https://forum.pinegrow.com/u/Jorge)\
**Post date:** [September 13, 2022, 5:24pm UTC](https://forum.pinegrow.com/t/wordpress-block-attribute-rich-text-control-align-problem/6955/1 "2022-09-13T17:24:39Z")

</div>

Hi.

1. I created a Wordpress Block with Smart Action and added Supports \> Align.

![Pinegrow-block-supports](https://canada1.discourse-cdn.com/flex036/uploads/pinegrow/original/2X/f/f941cb35e95fe322b28ec1284e7ec0d8ddebf6c4.png)

1. In a Paragraph inside the block I added a Block Attribute with control type “Rich Text”.

![Pinegrow-block-attribute](https://canada1.discourse-cdn.com/flex036/uploads/pinegrow/original/2X/1/13d994ee5afd646c7eaaa214f68bd8b4441b4021.png)

1. In Wordpress Editor although it appears the align controls the paragraph text do not align correctly always staying on the left.

 ![Wordpress-Editor](https://canada1.discourse-cdn.com/flex036/uploads/pinegrow/original/2X/8/8c53e1da23bccd12bc99aa898c6450aa60cc16ff.png)

1. In the frontend it appears also always on the left.

![Inspect](https://canada1.discourse-cdn.com/flex036/uploads/pinegrow/original/2X/1/1e3f3972c32c268d47dbf2f70b1d86b6fe93fe1b.png)  
 ![Pinegrow-Tree](https://canada1.discourse-cdn.com/flex036/uploads/pinegrow/original/2X/2/220dbf02c499d8954574675b1134e761ebc0c36f.png)

So what am I doing wrong? Or it’s not supported this feature?  
Thanks  
Jorge

---

<div class="post-metadata">

**Author:** ![matjaz](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/matjaz/32/5_2.png) [@matjaz](https://forum.pinegrow.com/u/matjaz)\
**Post date:** [September 13, 2022, 9:13pm UTC](https://forum.pinegrow.com/t/wordpress-block-attribute-rich-text-control-align-problem/6955/2 "2022-09-13T21:13:27Z")

</div>

@Jorge the `aligncenter` class is visible on the top div in your screenshot. My guess is that you have to add custom CSS rules that will implement the actual align styling for your block, for different align\* values.

---

<div class="post-metadata">

**Author:** ![Jorge](https://avatars.discourse-cdn.com/v4/letter/j/9fc29f/32.png) [@Jorge](https://forum.pinegrow.com/u/Jorge)\
**Post date:** [September 13, 2022, 10:21pm UTC](https://forum.pinegrow.com/t/wordpress-block-attribute-rich-text-control-align-problem/6955/3 "2022-09-13T22:21:03Z")

</div>

@matjaz Thank you for your reply. Sorry but I didn’t get it, can you please elaborate? I want to manage the text alignment through the wordpress editor alignment controls, but it’s not working, although the controls are injecting the correct class “aligncenter” on the block.  
So which custom CSS do I have to add if the class that I want is already there?

BTW, I am using Tailwind but apparently no class is interfering with the alignment settings.

If I add the Tailwind `text-center` class it centers correctly the text, but this is not what I want.

Thanks  
Jorge

---

<div class="post-metadata">

**Author:** ![matjaz](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/matjaz/32/5_2.png) [@matjaz](https://forum.pinegrow.com/u/matjaz)\
**Post date:** [September 13, 2022, 10:35pm UTC](https://forum.pinegrow.com/t/wordpress-block-attribute-rich-text-control-align-problem/6955/4 "2022-09-13T22:35:11Z")

</div>

@Jorge add the rule such as:

```auto
.aligncenter {
    text-align: center;
}

/* Plus, similar rules for left and right */

```

into your site-wide stylesheet or into a stylesheet that gets included with a block.

More about block styling:

> **[Styling our Custom Blocks | Pinegrow Web Editor](https://pinegrow.com/docs/wordpress/creating-custom-wordpress-blocks/styling-the-blocks/)**
>
> How to add custom styling to our blocks?

---

<div class="post-metadata">

**Author:** ![Jorge](https://avatars.discourse-cdn.com/v4/letter/j/9fc29f/32.png) [@Jorge](https://forum.pinegrow.com/u/Jorge)\
**Post date:** [September 13, 2022, 10:45pm UTC](https://forum.pinegrow.com/t/wordpress-block-attribute-rich-text-control-align-problem/6955/5 "2022-09-13T22:45:10Z")

</div>

@matjaz It works like a charm.

I really didn’t know that this was need.

Thank you.
