# Centering modules on pre-made Website Template

**URL:** <https://community.hubspot.com/t/centering-modules-on-pre-made-website-template/34553>\
**Category:** CMS Development\
**Created:** [March 25, 2021, 5:43pm UTC](https://community.hubspot.com/t/centering-modules-on-pre-made-website-template/34553 "2021-03-25T17:43:09Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![BCrumpton](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/bcrumpton/32/27794_2.png) [@BCrumpton](https://community.hubspot.com/u/BCrumpton)\
**Post date:** [March 25, 2021, 5:43pm UTC](https://community.hubspot.com/t/centering-modules-on-pre-made-website-template/34553/1 "2021-03-25T17:43:09Z")

</div>

Hello!!! I would love any tips or feedback on how to adjust a pre-made website template for mobile and ipad viewing. HS was able to center the image and button module for desktop viewing, but we need design help for changing the appearnace on ipad and mobile. Any suggestions would be helpful on how to make this change, or make the image and button look differently for the mobile and webpage viewing… I have attached an image of the Desktop preview and then on Mobile

 ![39950i0CB24E57B71ECE27.JPG](https://d2qpr2jzcazej7.cloudfront.net/original/3X/3/b/3be91c0711bd996c9c651fe8275268eebb9913ae.jpeg)

 ![39951iBC9B3961E5E6B686.JPG](https://d2qpr2jzcazej7.cloudfront.net/original/3X/0/f/0fac3af1faeb217bc65c13c1831d5ed5ca17224a.jpeg)

---

<div class="post-metadata">

**Author:** ![dennisedson](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dennisedson/32/28044_2.png) [@dennisedson](https://community.hubspot.com/u/dennisedson)\
**Post date:** [March 26, 2021, 5:27pm UTC](https://community.hubspot.com/t/centering-modules-on-pre-made-website-template/34553/2 "2021-03-26T17:27:50Z")

</div>

Hello @BCrumpton

Could you add a link to the page where this is so we can look under the hood?

@jonchim , I feel like this is up your alley 😀

---

<div class="post-metadata">

**Author:** ![jonchim](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jonchim/32/88818_2.png) [@jonchim](https://community.hubspot.com/u/jonchim)\
**Post date:** [March 26, 2021, 5:52pm UTC](https://community.hubspot.com/t/centering-modules-on-pre-made-website-template/34553/3 "2021-03-26T17:52:32Z")

</div>

Hey @BCrumpton, happy to take a look if you can send us a link 🙂

---

<div class="post-metadata">

**Author:** ![BCrumpton](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/bcrumpton/32/27794_2.png) [@BCrumpton](https://community.hubspot.com/u/BCrumpton)\
**Post date:** [March 26, 2021, 5:54pm UTC](https://community.hubspot.com/t/centering-modules-on-pre-made-website-template/34553/4 "2021-03-26T17:54:26Z")

</div>

> **[Edit Page | HubSpot](https://app.hubspot.com/pages/5578078/editor/37194288312/content)**

---

<div class="post-metadata">

**Author:** ![BCrumpton](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/bcrumpton/32/27794_2.png) [@BCrumpton](https://community.hubspot.com/u/BCrumpton)\
**Post date:** [March 26, 2021, 5:55pm UTC](https://community.hubspot.com/t/centering-modules-on-pre-made-website-template/34553/5 "2021-03-26T17:55:15Z")

</div>

@jonchim here it is! [Edit Page | HubSpot](https://app.hubspot.com/content/5578078/edit/37194288312/content)

Having issues centering the image of our “salary guide” and the button below it for mobile as well.

---

<div class="post-metadata">

**Author:** ![dennisedson](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dennisedson/32/28044_2.png) [@dennisedson](https://community.hubspot.com/u/dennisedson)\
**Post date:** [March 26, 2021, 5:58pm UTC](https://community.hubspot.com/t/centering-modules-on-pre-made-website-template/34553/6 "2021-03-26T17:58:18Z")

</div>

Going to add the preview link for @jonchim .

The app link will only work if he is a member of your portal

[https://www.bwbacon.com/candidates/tech-salaries?hs\_preview=WeMjEzIt-37194288312](https://www.bwbacon.com/candidates/tech-salaries?hs_preview=WeMjEzIt-37194288312)

---

<div class="post-metadata">

**Author:** ![jonchim](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jonchim/32/88818_2.png) [@jonchim](https://community.hubspot.com/u/jonchim)\
**Post date:** [March 29, 2021, 12:33pm UTC](https://community.hubspot.com/t/centering-modules-on-pre-made-website-template/34553/7 "2021-03-29T12:33:20Z")

</div>

Hey @BCrumpton,

I noticed that on the image widget above the CTA, there’s something stlye applied to it that are affecting the position on screensizes below 850px

```lia-code-sample
#hs_cos_wrapper_widget_1616690035115 {
 display: block !important;
 padding-left: 400px !important;
}

```

And to adjust your CTA, you just need to add some line height to the button text, using line-height set to inital or inherit should do the trick unless you wanted to set a defined line-height.

```lia-code-sample
#hs-button_widget_1616685397982 {
 background-color: #ff9902;
 color: #fff;
 font-size: 30px;
 font-family: Montserrat, sans-serif;
 font-style: normal;
 font-weight: normal;
 text-decoration: none;
 line-height: initial;
}

```

Also looks like there’s padding left on the CTA button too that’s affecting the position on mobile. If you wanted to center that button and the image on desktop and mobile using text-align: center; should do the trick for both

```lia-code-sample
#hs_cos_wrapper_widget_1616685397982 {
 display: block !important;
 padding-bottom: 5px !important;
 padding-left: 349px !important;
 padding-right: 10px !important;
 padding-top: 5px !important;
}

```

Hope this helps! let me know if you run into any other issues.

---

<div class="post-metadata">

**Author:** ![BCrumpton](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/bcrumpton/32/27794_2.png) [@BCrumpton](https://community.hubspot.com/u/BCrumpton)\
**Post date:** [March 31, 2021, 2:53pm UTC](https://community.hubspot.com/t/centering-modules-on-pre-made-website-template/34553/8 "2021-03-31T14:53:25Z")

</div>

Thanks for this feedback! Adjusting the line height helped with the button and I changed the orientation of the photo I was using which also helped.

Thanks again
