Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

reCAPTCHA box not being aligned correctly

I can't get to align correctly the reCAPTCHA form on my registration page. Even if the div it is contained in has text-align set to center, it is displayed on the left of the page:
Bugged version: the reCAPTCHA is on the left While if I change its align via JavaScript (document.getElementById("recaptcha_widget_div").align = "right") it works correctly (screenshot taken in the middle of the page):
Correct version: the reCAPTCHA is in the middle

What am I doing wrong?

Edit: here's a fiddle with the div and the entire CSS called in the page.

like image 978
Giulio Muscarello Avatar asked Aug 14 '13 15:08

Giulio Muscarello


1 Answers

You need this css rule:

#recaptcha_area { margin: auto}
like image 108
fred02138 Avatar answered Oct 05 '22 23:10

fred02138