# Form styling

**URL:** <https://community.hubspot.com/t/form-styling/10246>\
**Category:** CMS Development\
**Created:** [September 17, 2018, 10:13am UTC](https://community.hubspot.com/t/form-styling/10246 "2018-09-17T10:13:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Matt1986](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/matt1986/32/48165_2.png) [@Matt1986](https://community.hubspot.com/u/Matt1986)\
**Post date:** [September 17, 2018, 10:13am UTC](https://community.hubspot.com/t/form-styling/10246/1 "2018-09-17T10:13:25Z")

</div>

Hi

I’m trying to restyle the forms on our website and want the form to have a max-width of 600 px. I’m having no probelms with achieving this with the form fields. However i can seem to get the form button to also have a max width of 600px and scale down with the form fields when being responsive.

An example of our current forms can be seen at the bottom of this page [Eurobase Partners | Creating New Business Opportunities](https://www.eurobase.com/our-partners)

Any help would be much appreciated!

Thanks

Matt

---

<div class="post-metadata">

**Author:** ![tjoyce](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/tjoyce/32/88832_2.png) [@tjoyce](https://community.hubspot.com/u/tjoyce)\
**Post date:** [September 17, 2018, 11:29am UTC](https://community.hubspot.com/t/form-styling/10246/2 "2018-09-17T11:29:31Z")

</div>

Hello @Matt1986 - Try the following CSS,

```auto
form.hs-form {
 max-width:600px;
 margin: auto;
}
form.hs-form input[type="submit"]{
 display: block;
 width: 100%;
 max-width: 600px;
}
.hs-submit {
 padding-right: 10px;
}#hs_cos_wrapper_module_153303994411993 * { max-width: 600px; margin:auto;}

```

it should help your form look like this:

> **[Monosnap - Screenshot Tool with Cloud Storage](https://monosnap.ai/file/opxEkvylwSH0XRdoeTusPwcNOjuHF4)**
>
> Monosnap screenshot tool for Mac and PC with own cloud storage. Take screenshots, record videos and upload files directly to the cloud. Just in one click.

* * *

If this answer helped, please, mark as solved 😄

* * *

[tim@belch.io](mailto:tim@belch.io) | [forms.belch.io](https://forms.belch.io) | Design your own Beautiful HubSpot Forms; No coding necessary.

Drop by and say Hi to me [on slack](http://slack.belch.io/).

---

<div class="post-metadata">

**Author:** ![Matt1986](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/matt1986/32/48165_2.png) [@Matt1986](https://community.hubspot.com/u/Matt1986)\
**Post date:** [September 17, 2018, 11:36am UTC](https://community.hubspot.com/t/form-styling/10246/3 "2018-09-17T11:36:02Z")

</div>

Hi

Great, thanks tjoyce.

That is what i as aiming for. Appreciate the help!

Thank you

Matt
