# A Few Form Styling Questions

**URL:** <https://community.hubspot.com/t/a-few-form-styling-questions/4229>\
**Category:** CMS Development\
**Created:** [December 15, 2017, 7:43pm UTC](https://community.hubspot.com/t/a-few-form-styling-questions/4229 "2017-12-15T19:43:03Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![NikkiG](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/nikkig/32/33088_2.png) [@NikkiG](https://community.hubspot.com/u/NikkiG)\
**Post date:** [December 15, 2017, 7:43pm UTC](https://community.hubspot.com/t/a-few-form-styling-questions/4229/1 "2017-12-15T19:43:03Z")

</div>

Hi there, I’ve got a few form styling questions that are probably simple questions, but I’d prefer not break anything today, so I thought I’ just jump on here and ask those who are much smarter than myself. 🙂

1) How do I change the color of the fields?

2) How do I decrease the space between the field label and field itself?

3) How do I style the inline thank you message?  
4) How do I resize the captcha for mobile? (see screenshot)

 ![captcha.jpg](https://d2qpr2jzcazej7.cloudfront.net/original/3X/5/9/59abf7ce1e979fff7edacdbcf41e32eb0ea368ad.jpeg)

---

<div class="post-metadata">

**Author:** ![TRooInbound](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/trooinbound/32/89545_2.png) [@TRooInbound](https://community.hubspot.com/u/TRooInbound)\
**Post date:** [December 16, 2017, 10:07am UTC](https://community.hubspot.com/t/a-few-form-styling-questions/4229/2 "2017-12-16T10:07:36Z")

</div>

Hi @NikkiG,

Nice to see you again! how are you? and what’s plan for Christmas party?  
 ![16x16_smiley-lol.png.png](https://d2qpr2jzcazej7.cloudfront.net/original/2X/9/9a438c7fe86ea6c959679ec1f9b892b05bcc9dc8.png)

We are waiting for your invitation to join you.  
 ![16x16_smiley-tongue.png.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/9/e/9ee85ed32f43bd1e26f190560e13ba27d75117cd.png)

So now go for your question answer,

here I am given you CSS targeted class name and hope you write related CSS syntax with using this class names,

1) How do I change the color of the fields?

```auto
.hs-form-field > label {
	color:red
}

```

2) How do I decrease the space between the field label and field itself?

```auto
.hs-form-field > label {
 display:block;
	line-height:normal;
	margin-bottom:0;
	padding-bottom:0
}

```

3) How do I style the inline thank you message?

```auto
.submitted-message {
 font-size:24px;
	line-height:30px;
	color:red;
}

```

4) How do I resize the captcha for mobile? (see screenshot)

```auto
.hs_recaptcha {
 transform:scale(0.77);
	-webkit-transform:scale(0.77);
	transform-origin:0 ;
	-webkit-transform-origin:0;
}

```

Hope this help!

Did my post help answer your query? Help the Community by **marking it as a solution.**

**Team TRooInbound**

---

<div class="post-metadata">

**Author:** ![NikkiG](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/nikkig/32/33088_2.png) [@NikkiG](https://community.hubspot.com/u/NikkiG)\
**Post date:** [January 5, 2018, 4:35pm UTC](https://community.hubspot.com/t/a-few-form-styling-questions/4229/3 "2018-01-05T16:35:01Z")

</div>

Hi @TRooInbound -

Wow! I’m SO sorry! I thought I replied to this LONG ago! I definitely remember typing a whole response and everything!  
 ![16x16_smiley-mad.png](https://d2qpr2jzcazej7.cloudfront.net/original/2X/9/984dd4a13c875f57cf235052147b60e9ed6c626c.png)

Thank you so much, as always for your help! I implemented everything except #1. I’m looking to change the actual field itself, not the label. See example below. Obviously, I don’t want it to be red, just used a contrasting color. I asked support and their suggestion was to ask the community. 🙂

 ![form fields.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/e/2/e26a8ac585e64c5ffa4c034cb71f57b8c5a38f58.png)

So sorry again for the lack of response! I hope you had happy holidays and your new year is going great so far!

---

<div class="post-metadata">

**Author:** ![KimberlyO](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/kimberlyo/32/79644_2.png) [@KimberlyO](https://community.hubspot.com/u/KimberlyO)\
**Post date:** [January 19, 2018, 6:54pm UTC](https://community.hubspot.com/t/a-few-form-styling-questions/4229/4 "2018-01-19T18:54:57Z")

</div>

Hi

I implemented your #3 for the Thank you message CSS with a few modifications but it does not seem to work. Any guidance?

.submitted-message {  
font-size: 24px;  
line-height: 30px;  
color: #3e3e3e;  
}

Thanks

---

<div class="post-metadata">

**Author:** ![KimberlyO](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/kimberlyo/32/79644_2.png) [@KimberlyO](https://community.hubspot.com/u/KimberlyO)\
**Post date:** [January 19, 2018, 6:56pm UTC](https://community.hubspot.com/t/a-few-form-styling-questions/4229/5 "2018-01-19T18:56:54Z")

</div>

Never mind your code work…

It took clearing my cookies and cache to see it work properly.

---

<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:** [June 5, 2018, 11:17pm UTC](https://community.hubspot.com/t/a-few-form-styling-questions/4229/6 "2018-06-05T23:17:24Z")

</div>

If you get stuck again with your form design, try [this tool](http://forms.belch.io/), it might be faster than hand coding the CSS.

---

<div class="post-metadata">

**Author:** ![JetEdge](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jetedge/32/79644_2.png) [@JetEdge](https://community.hubspot.com/u/JetEdge)\
**Post date:** [February 4, 2022, 9:29pm UTC](https://community.hubspot.com/t/a-few-form-styling-questions/4229/7 "2022-02-04T21:29:58Z")

</div>

Indeed the .hs\_recaptcha class name was the only thing that affects the element.  
This snippet may help others achieve a more low-profile, flat look (eg: `border-radius` / `max-width` / `overflow:hidden` will help hide that ugly drop shadow) :

`.hbspt-form .hs_recaptcha { transform:scale(0.75); -webkit-transform:scale(0.75); transform-origin:0 ; -webkit-transform-origin:0; border-radius: 10px !important; overflow: hidden !important; opacity: 0.55 !important; margin: 0 auto 0.15rem 0 !important; max-width: 16rem !important;}`
