# Vertically Aligning text element within a container

**URL:** <https://community.hubspot.com/t/vertically-aligning-text-element-within-a-container/3450>\
**Category:** CMS Development\
**Created:** [September 27, 2017, 1:18pm UTC](https://community.hubspot.com/t/vertically-aligning-text-element-within-a-container/3450 "2017-09-27T13:18:26Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![tette\_engage](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/tette_engage/32/92090_2.png) [@tette\_engage](https://community.hubspot.com/u/tette_engage)\
**Post date:** [October 13, 2020, 8:19am UTC](https://community.hubspot.com/t/vertically-aligning-text-element-within-a-container/3450/3 "2020-10-13T08:19:05Z")

</div>

Hi @Jsum

I tried making my pic+text into flex-boxes, but am I putting the codes in the wrong places as nothing has changed? I first put the codes directly into the modules’ inline styling in design tools, after which I gave them classes (.kuva-boxi (the wrapper) / .kuva-boxi-kuva (the pic) / .kuva-boxi-teksti (the text)) and added the codes into the main css.

It’s the ‘A Glimpse in to the future’ row if you want to inspect 🙂

[https://www.prometheusone.io/home-keino?hs\_preview=RpbgmWLr-35826508196](https://www.prometheusone.io/home-keino?hs_preview=RpbgmWLr-35826508196)

---

_[View the full topic](https://community.hubspot.com/t/vertically-aligning-text-element-within-a-container/3450)._
