# Align Text Center Vertical?

**URL:** <https://forums.realmacsoftware.com/t/align-text-center-vertical/49514>\
**Category:** Elements\
**Created:** [August 6, 2025, 10:38pm UTC](https://forums.realmacsoftware.com/t/align-text-center-vertical/49514 "2025-08-06T22:38:51Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![bruce](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/bruce/32/23155_2.png) [@bruce](https://forums.realmacsoftware.com/u/bruce)\
**Post date:** [August 6, 2025, 10:38pm UTC](https://forums.realmacsoftware.com/t/align-text-center-vertical/49514/1 "2025-08-06T22:38:51Z")

</div>

Is there a way to align this text centered vertical? I want "Click to Expand moved upward.

 ![Screenshot 2025-08-06 at 5.35.41 PM](https://europe1.discourse-cdn.com/flex005/uploads/realmacsoftware1/original/3X/d/c/dcd49c151c7a7810f0852c8c78f729bbafceb72b.png)

---

<div class="post-metadata">

**Author:** ![handshaper](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/handshaper/32/27373_2.png) [@handshaper](https://forums.realmacsoftware.com/u/handshaper)\
**Post date:** [August 7, 2025, 1:36am UTC](https://forums.realmacsoftware.com/t/align-text-center-vertical/49514/2 "2025-08-07T01:36:50Z")

</div>

Because the Text component doesn’t have a vertically center text option, the easiest way to accomplish this is to break the text into two separate blocks of text. Then place them inside a Flex component, where you will gain the ability to center the two blocks vertically.

Normally, you should be able to do this in the typography component where you could use the Tailwind `align-middle `class but it appears Elements does not yet support these alignment classes. At least from what my testing shows.

This is what it looks like when done with a flex and two text blocks.

 ![CleanShot 2025-08-06 at 15.36.05@2x](https://europe1.discourse-cdn.com/flex005/uploads/realmacsoftware1/original/3X/2/1/2161a5bd609a0f01fd5da49923792b4863261e8d.png)

---

<div class="post-metadata">

**Author:** ![bruce](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/bruce/32/23155_2.png) [@bruce](https://forums.realmacsoftware.com/u/bruce)\
**Post date:** [August 7, 2025, 2:32am UTC](https://forums.realmacsoftware.com/t/align-text-center-vertical/49514/3 "2025-08-07T02:32:40Z")

</div>

Thanks @handshaper. Super cool way to do this. Lots of settings to tweak the spacing. A bit challenging to get it set up in the Accordion, but after a few attempts I got it working.

 ![Screenshot 2025-08-06 at 9.29.00 PM](https://europe1.discourse-cdn.com/flex005/uploads/realmacsoftware1/original/3X/1/a/1a0a163c899b9bc8b0f27644151e5931f333d46a.jpeg)

---

<div class="post-metadata">

**Author:** ![handshaper](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/handshaper/32/27373_2.png) [@handshaper](https://forums.realmacsoftware.com/u/handshaper)\
**Post date:** [August 7, 2025, 3:38am UTC](https://forums.realmacsoftware.com/t/align-text-center-vertical/49514/4 "2025-08-07T03:38:32Z")

</div>

Awesome, @bruce looks cool!

---

<div class="post-metadata">

**Author:** ![upssjw](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/upssjw/32/26063_2.png) [@upssjw](https://forums.realmacsoftware.com/u/upssjw)\
**Post date:** [August 7, 2025, 5:49am UTC](https://forums.realmacsoftware.com/t/align-text-center-vertical/49514/5 "2025-08-07T05:49:11Z")

</div>

if you apply align-middle to the text class then it aligns, depends on what is aligned

---

<div class="post-metadata">

**Author:** ![handshaper](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/handshaper/32/27373_2.png) [@handshaper](https://forums.realmacsoftware.com/u/handshaper)\
**Post date:** [August 7, 2025, 6:17am UTC](https://forums.realmacsoftware.com/t/align-text-center-vertical/49514/6 "2025-08-07T06:17:22Z")

</div>

Yes, it works on the inline text but not if applied to the text or typography component.
