Hello,
Unfortunately, reCaptcha is inherently unresponsive. Since the whole reCaptcha module is inside an iframe, at a URL other than the parent domain, any custom CSS or JS is ignored. We wouldn’t be able to tell you why Google hasn’t upgraded it to be inherently responsive, nor do we have any good one-size-fits-all solution. There are some hacky workarounds for this, but the cross-browser support is iffy at best.
Hey, I found a solution which worked for me –
In your contact form, paste this –
<div class=”g-recaptcha” style=”transform:scale(0.88);-webkit-transform:scale(0.88);transform-origin:0 0;-webkit-transform-origin:0 0;”>
[recaptcha]
</div>
Found this from StackOverflow,
The original answer said to paste this –
<div class=”g-recaptcha” data-sitekey=”XXXXXXXXXXXXX5oXXXXXX” style=”transform:scale(0.88);-webkit-transform:scale(0.88);transform-origin:0 0;-webkit-transform-origin:0 0;”>
[recaptcha]
</div>
But I’m not sure if “data-sitekey” is needed since our concern is the style of the div only.
Hi @shubhampunj,
Thanks for your solution. It works for me now 😉