# Form width not playing nice

**URL:** <https://community.hubspot.com/t/form-width-not-playing-nice/10517>\
**Category:** CMS Development\
**Created:** [October 10, 2018, 1:29pm UTC](https://community.hubspot.com/t/form-width-not-playing-nice/10517 "2018-10-10T13:29:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jlawal](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jlawal/32/5125_2.png) [@Jlawal](https://community.hubspot.com/u/Jlawal)\
**Post date:** [October 10, 2018, 1:29pm UTC](https://community.hubspot.com/t/form-width-not-playing-nice/10517/1 "2018-10-10T13:29:50Z")

</div>

Hello,

I am having some issues trying to style my form for mobile. I know very little, but i think it may be something to do with the container? The page it is on can be seen [here](https://www.groupcall.com/-temporary-slug-eea055f9-3f14-4ba5-8830-111d342fbcd4?hs_preview=TcunBHhf-6178394782).

The image below is how it displays on a mobile:

 ![hs community.PNG](https://d2qpr2jzcazej7.cloudfront.net/original/3X/a/5/a5de2278b40a1d02edd339c9a8c3e25c608726f4.png)

Below is how i would like it to look:

 ![hs community 2.PNG](https://d2qpr2jzcazej7.cloudfront.net/original/3X/3/5/35b4dfaf14c0bb6139a2d3066bd52c3b801d68a0.png)

I would like the form to display at a normal width. I’m not sure what is causing it to squish to the right.

Any help would be greatly appreciated.

Many thanks,

Jamila

---

<div class="post-metadata">

**Author:** ![Stephanie-OG](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/stephanie-og/32/73267_2.png) [@Stephanie-OG](https://community.hubspot.com/u/Stephanie-OG)\
**Post date:** [October 10, 2018, 2:29pm UTC](https://community.hubspot.com/t/form-width-not-playing-nice/10517/2 "2018-10-10T14:29:02Z")

</div>

Hi there!

In your Design Manager you should be able to find a file called parent-site-style.css. If you Ctrl + F to search, you should find something like the below:

```auto
@media screen and (max-width: 768px) {
 .contact-form {
 width: 100%;
 padding-left: 1px;
 }}

```

If you add “!important” after the width, as below, and Publish the file, it should update your form. This forces it to override any previous formatting.

```auto
@media screen and (max-width: 768px) {
 .contact-form {
 width: 100% !important;
 padding-left: 1px;
 }}

```

To fix the width of the first and last name, then, you’ll also want to add in a couple of extra lines:

```auto
@media screen and (max-width: 768px) {
 .contact-form {
 width: 100% !important;
 padding-left: 1px;
 }
}@media (max-width: 400px) { .contact-form input { width: 100% !important; } .contact-form .input { margin: 0 !important; }}

```

I hope that helps!

* * *

[![|300](https://d2qpr2jzcazej7.cloudfront.net/original/2X/e/e6ddb445b684524bbcbd802044a9ca3919d1fbc7.png)](http://www.stephanieogaygarcia.com?utm_source=HubSpotCommunity)HubSpot Design / Development

[Website](http://www.stephanieogaygarcia.com?utm_source=HubSpotCommunity) | [Contact](http://www.stephanieogaygarcia.com/contact?utm_source=HubSpotCommunity)

_If this helped, please mark it as the solution to your question, thanks!_

---

<div class="post-metadata">

**Author:** ![Jlawal](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jlawal/32/5125_2.png) [@Jlawal](https://community.hubspot.com/u/Jlawal)\
**Post date:** [October 10, 2018, 3:39pm UTC](https://community.hubspot.com/t/form-width-not-playing-nice/10517/3 "2018-10-10T15:39:43Z")

</div>

Thank you @Stephanie-OG, that has worked perfectly! 🙂
