P
P
pvgdrk2017-01-23 23:26:14
css
pvgdrk, 2017-01-23 23:26:14

How to scale image checkbox in recaptcha?

I am making a mobile version of the site. I am using recaptcha2.
To scale the recaptcha2 widget with the "I'm not a robot" checkbox, you need to change the sale parameter for the ".g-recaptcha" class.
1b416b8eb68b49039522f2a4b8360522.JPG
It works.
But you also need to change the scale of the window with the choice of pictures.
9f017c25145e4f4eae17b5088c099abe.JPG
The link says that the same parameter (scale) allows you to change the scale of this window (#rc-imageselect).
https://geekgoddess.com/how-to-resize-the-google-n...
But it appears from the event and the style specified in css does not affect it. And when you try to change the style after, the window just disappears.
How to scale image checkbox in recaptcha?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Z
zano3adev, 2017-01-24
@pvgdrk

.g-recaptcha,
.g-recaptcha div{
    overflow: hidden;
    max-width: 100%;
}

.g-recaptcha iframe,
body > div[style]:last-of-type{
    transform: scale(0.75);
    transform-origin: left top;
}

or JavaScript

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question