Centering Captcha in a layout grid

Issues related to forms.
Post Reply
Aris
 
 
Posts: 204
Joined: Wed Aug 28, 2013 9:28 am

Centering Captcha in a layout grid

Post by Aris »

Hello.

I'm trying to place the Captcha (Type: reCaptcha in the center of the psi, but I can't: the psi takes up the entire grid and the image is on the left.

How can I center it in the grid?

Thank you.
User avatar
crispy68
 
 
Posts: 2913
Joined: Thu Oct 23, 2014 12:43 am
Location: Acworth, GA
Contact:

Re: Centering Captcha in a layout grid

Post by crispy68 »

Which recaptcha are you using? recaptcha v2? What is "psi"?
Aris
 
 
Posts: 204
Joined: Wed Aug 28, 2013 9:28 am

Re: Centering Captcha in a layout grid

Post by Aris »

Sorry.
I am usimg Captcha (Type: reCaptcha v2).
Regardless of this, the same problem I face with the Captcha Type Math.
User avatar
crispy68
 
 
Posts: 2913
Joined: Thu Oct 23, 2014 12:43 am
Location: Acworth, GA
Contact:

Re: Centering Captcha in a layout grid

Post by crispy68 »

What is "psi"? Are you trying to center it in a grid?
Aris
 
 
Posts: 204
Joined: Wed Aug 28, 2013 9:28 am

Re: Centering Captcha in a layout grid

Post by Aris »

Yes.
Aris
 
 
Posts: 204
Joined: Wed Aug 28, 2013 9:28 am

Re: Centering Captcha in a layout grid

Post by Aris »

Sorry for "psi".

I am usimg Captcha (Type: reCaptcha v2).
Regardless of this, the same problem I face with the Captcha Type Math.

Thank you.
User avatar
crispy68
 
 
Posts: 2913
Joined: Thu Oct 23, 2014 12:43 am
Location: Acworth, GA
Contact:

Re: Centering Captcha in a layout grid

Post by crispy68 »

For the recaptcha v2, try this:

Open a code object and add the following placed between the <head> tags:

Code: Select all

<style>
.g-recaptcha{width:304px;margin:0 auto;}
</style>
Aris
 
 
Posts: 204
Joined: Wed Aug 28, 2013 9:28 am

Re: Centering Captcha in a layout grid

Post by Aris »

Thank you, crispy68.

Perfect solution!

Aris
Post Reply