2

I want to put recaptcha inside my div fit. As you know google return the recaptcah as an iframe and can't manipulate it.

<style>
.parent{overflow:hidden}
</style>
<div class="parent">
<!-- google recaptcha-->
</div>

the problem is google response's width is more than parent's width and the rest of the google response isn't shown. How can I put the google response inside parent div fit?

  • This answer may help: https://stackoverflow.com/questions/27691411/change-new-google-recaptcha-width/29521983#29521983 – colecmc Jan 09 '18 at 18:44
  • @colecmc. doesn't work. iframe retrieve from google is wider than parent div. how can I fit google's iframe into parent div – Reza Asgari Jan 10 '18 at 05:59
  • Google only provide those size options. If neither works, and the scale trick does not work, you will have to find a new technique. – colecmc Jan 10 '18 at 16:19

1 Answers1

0

with:

.parent iframe {width:100%;}

You can't manipulate whatever is inside an iframe but you can set the measures of the iframe itself

Alvaro Menéndez
  • 8,766
  • 3
  • 37
  • 57