# Resizing Recaptcha?

**URL:** <https://community.gravityforms.com/t/resizing-recaptcha/14152>\
**Category:** Get Help\
**Tags:** recaptcha, gform\_field\_content, captcha, compact, gravity-wiz\
**Created:** [December 29, 2022, 1:45am UTC](https://community.gravityforms.com/t/resizing-recaptcha/14152 "2022-12-29T01:45:10Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![user615f28327baf0158](https://avatars.discourse-cdn.com/v4/letter/u/d07c76/32.png) [@user615f28327baf0158](https://community.gravityforms.com/u/user615f28327baf0158)\
**Post date:** [December 29, 2022, 1:45am UTC](https://community.gravityforms.com/t/resizing-recaptcha/14152/1 "2022-12-29T01:45:10Z")

</div>

Looking to resize the captcha on this page =

> **[Public Safety DAS - Charlotte, North Carolina](https://piersonwireless.com/charlotte/)**
>
> Pierson Wireless can ensure your building operates safely and within the codes and ordinances of Charlotte and the counties of Mecklenburg, Alexander, Anson, Cabarrus, Catawba, Iredell, and Union by designing, installing and monitoring a compliant...

I’ve found some Google recaptcha code (below) but doesn’t seem to work in/with Gravity Forms. Please help.

.g-recaptcha {  
transform:scale(0.77);  
transform-origin:0 0;  
}

---

<div class="post-metadata">

**Author:** ![david](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/david/32/2517_2.png) [@david](https://community.gravityforms.com/u/david)\
**Post date:** [December 29, 2022, 3:06pm UTC](https://community.gravityforms.com/t/resizing-recaptcha/14152/2 "2022-12-29T15:06:19Z")

</div>

**Edit:** Better solution below.

> [@Resizing Recaptcha?](https://community.gravityforms.com/t/resizing-recaptcha/14152/4):
>
> Ok, I couldn’t leave this alone. sweat_smile Here’s a better solution that actually activates reCAPTCHA’s “compact” mode. I’ve added it to our Snippet Library here:

**Original:**

Dang. This is one of those scenarios where it feels like there has to be a better solution but… in the name of narrow forms, this should work for you. 😄

```css
.ginput_recaptcha iframe {
    transform: scale(0.65);
    transform-origin:0 0;
}

```

---

<div class="post-metadata">

**Author:** ![user615f28327baf0158](https://avatars.discourse-cdn.com/v4/letter/u/d07c76/32.png) [@user615f28327baf0158](https://community.gravityforms.com/u/user615f28327baf0158)\
**Post date:** [December 30, 2022, 4:25am UTC](https://community.gravityforms.com/t/resizing-recaptcha/14152/3 "2022-12-30T04:25:50Z")

</div>

> [@david](#):
>
> ```auto
> transform: scale(0.65);
> transform-origin:0 0;
> }
> 
> ```

Thank you so much! This worked perfectly! However, I will add that seeing the Captcha shrunk down is a tad odd at first. Hoping that Gravity Forms adds, or adds back, a ‘compact’ option to these within the backend. But, thank you again David.

---

<div class="post-metadata">

**Author:** ![david](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/david/32/2517_2.png) [@david](https://community.gravityforms.com/u/david)\
**Post date:** [December 30, 2022, 2:32pm UTC](https://community.gravityforms.com/t/resizing-recaptcha/14152/4 "2022-12-30T14:32:27Z")

</div>

Ok, I couldn’t leave this alone. 😅

Here’s a better solution that actually activates reCAPTCHA’s “compact” mode. I’ve added it to our Snippet Library here:

> <https://github.com/gravitywiz/snippet-library/blob/master/gravity-forms/gw-compact-recaptcha.php>

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/gravityforms1/original/2X/f/fef63f0599c45e0218c30d9f5d7ca8bff9b00189.png) [@system](https://community.gravityforms.com/u/system)\
**Post date:** [January 29, 2023, 2:32pm UTC](https://community.gravityforms.com/t/resizing-recaptcha/14152/5 "2023-01-29T14:32:42Z")

</div>

Closed on January 29, 2023, 2:32pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
