Centering No Captcha reCaptcha

后端 未结 14 1160
旧巷少年郎
旧巷少年郎 2020-12-24 01:38

After a few hours of research and trial and error, I was finally able to add the new Google No Capatcha re Capatcha to my form and get it working, but for some reason, it wo

相关标签:
14条回答
  • 2020-12-24 02:39

    If anyone is using reCaptcha with Bootstrap you can do the following:

    <div class="text-center">
    <div class="row">
        <div class="col-sm-1"></div>
        <div class="col-sm-10">{{> reCAPTCHA}}</div>
        <div class="col-sm-1"></div>
    </div>
    

    .text-center{text-align:center;}
    
    0 讨论(0)
  • 2020-12-24 02:40

    With Bootstrap 4 you can easily do this by creating a div containing with a class of text-center. Then add to the g-recaptcha class tag d-inline-block

    <div class="text-center"><div class="g-recaptcha d-inline-block" data-sitekey="your-site-key-here"></div></div>
    
    0 讨论(0)
提交回复
热议问题