# Make center text center aligned

**URL:** <https://community.hubspot.com/t/make-center-text-center-aligned/64646>\
**Category:** CMS Development\
**Created:** [September 7, 2022, 9:14pm UTC](https://community.hubspot.com/t/make-center-text-center-aligned/64646 "2022-09-07T21:14:08Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Anton](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/anton/32/103167_2.png) [@Anton](https://community.hubspot.com/u/Anton)\
**Post date:** [September 8, 2022, 5:37am UTC](https://community.hubspot.com/t/make-center-text-center-aligned/64646/2 "2022-09-08T05:37:52Z")

</div>

Hi @NisantaSahoo,

if you want to center the text in the column. You can:

1. **add inline-styling**

like this

`<div class="grid __col grid__ col--1of2" style="text-align:center">`

to it. It will work, but I don’t recommend inline-styling

1. **create a simple [CSS class](https://knowledge.hubspot.com/design-manager/create-edit-and-attach-css-files-to-style-your-site)**

like this

module/template(or where ever this div is)

`<div class="grid __col grid__ col--1of2 text-centered">`

Your main CSS file:

```lia-code-sample
.text-centered{
text-align:center;
}

```

This will give you more control over media queries(responsiveness).

best,

Anton

_Moderator note: While this solution may not address the original poster’s specific situation, it could be helpful for other community members facing similar challenges._

---

_[View the full topic](https://community.hubspot.com/t/make-center-text-center-aligned/64646)._
