# Adjusting module width in the landing page editor

**URL:** <https://community.hubspot.com/t/adjusting-module-width-in-the-landing-page-editor/70610>\
**Category:** Blog, Website & Page Publishing\
**Tags:** landing-pages\
**Created:** [December 6, 2022, 2:56am UTC](https://community.hubspot.com/t/adjusting-module-width-in-the-landing-page-editor/70610 "2022-12-06T02:56:41Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![MichL](https://avatars.discourse-cdn.com/v4/letter/m/edb3f5/32.png) [@MichL](https://community.hubspot.com/u/MichL)\
**Post date:** [December 6, 2022, 2:56am UTC](https://community.hubspot.com/t/adjusting-module-width-in-the-landing-page-editor/70610/1 "2022-12-06T02:56:41Z")

</div>

Hey there! I have a landing page that looks good on mobile but is too elongated on desktop. I’m looking for a way to reduce the max width of my rich text modules as a temporary quick fix to mobile responsiveness.

I was looking at [this Hubspot Community post](https://community.hubspot.com/t5/Productivity-Tools/Adding-Padding-to-Form-on-Hubspot-Landing-Page-on-Desktop-Only/m-p/395977), and it looks like the following head HTML should fix the issue for forms:

```lia-code-sample
<style>
#hs_cos_wrapper_module_1605115967568431 {
max-width: 500px;
margin: 0 auto;
}
</style>

```

Is there a similar code that can be used to adjust the max width of rich text modules, instead of form modules? Alternatively, is there a way for me to pull the IDs of my rich text modules and replace it in the code snippet?

…or am I vastly simplifying something that should be a page stylesheet fix? 😅

---

<div class="post-metadata">

**Author:** ![Niharika](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/niharika/32/30293_2.png) [@Niharika](https://community.hubspot.com/u/Niharika)\
**Post date:** [December 6, 2022, 9:25am UTC](https://community.hubspot.com/t/adjusting-module-width-in-the-landing-page-editor/70610/2 "2022-12-06T09:25:17Z")

</div>

Hi @MichL

Trust you are doing great.

It would be great if you can share the WEB URL of landing page.

Thanks

Niharika Goyal

---

<div class="post-metadata">

**Author:** ![MichL](https://avatars.discourse-cdn.com/v4/letter/m/edb3f5/32.png) [@MichL](https://community.hubspot.com/u/MichL)\
**Post date:** [December 6, 2022, 1:46pm UTC](https://community.hubspot.com/t/adjusting-module-width-in-the-landing-page-editor/70610/3 "2022-12-06T13:46:30Z")

</div>

Thanks for the reply Niharika, that would certainly make sense to share 🙂 Here is the URL

---

<div class="post-metadata">

**Author:** ![Niharika](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/niharika/32/30293_2.png) [@Niharika](https://community.hubspot.com/u/Niharika)\
**Post date:** [December 7, 2022, 4:30am UTC](https://community.hubspot.com/t/adjusting-module-width-in-the-landing-page-editor/70610/4 "2022-12-07T04:30:56Z")

</div>

Hi @MichL

Trust you are doing great.

I have checked the page. To reduce the text width and make it center aligned please use below CSS

**\<style\>**

**.hero .span12.widget-span.widget-type-cell.container**

**{**

**width:100%;max-width:70%;padding-left:0px;**

**}**

**@media (max-width:767px)**

**{**

**.hero .span12.widget-span.widget-type-cell.container**

**{**

**width:100%;max-width:100%;padding-left:0px;**

**}**

**}**

**\</style\>**

After adding the above styling your page would look like below

 ![Niharika_0-1670387408295.jpg](https://d2qpr2jzcazej7.cloudfront.net/original/3X/3/e/3e8cc86e4ad5a90461ffdb34da8a159c9fcb1933.jpeg)

Please check and let me know if you will need any further assistance.

Thanks

Niharika Goyal

---

<div class="post-metadata">

**Author:** ![MichL](https://avatars.discourse-cdn.com/v4/letter/m/edb3f5/32.png) [@MichL](https://community.hubspot.com/u/MichL)\
**Post date:** [December 7, 2022, 2:53pm UTC](https://community.hubspot.com/t/adjusting-module-width-in-the-landing-page-editor/70610/5 "2022-12-07T14:53:26Z")

</div>

Thank you Niharika, I really appreciate the assistance here. Unfortunately this causes the mobile version to become cut off. That’s okay though, I will keep the landing page as-is for now. Thank you!
