Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

reCaptcha styling is broken

I implemented reCaptcha into the following website. I used recaptchalib.php from Google Code and did not change anything in the PHP file.

However, the result reCaptcha in my website seems to broke. The buttons have weird white space above them. It works just fine, but it is not pretty :(

Here is the website that has problem: http://### (removed)

Here is the code that I used to echo reCaptcha form

require_once('recaptchalib.php');
$publickey = "XXXXXXXXXXX"; // you got this from the signup page
echo recaptcha_get_html($publickey);

Best regards

like image 256
designil Avatar asked May 19 '13 15:05

designil


People also ask

Can I style reCAPTCHA?

Custom theming allows you to control exactly how the reCAPTCHA image appears. (Here is a demo of custom theming.) In order to use custom theming, you must first set the theme property of the RecaptchaOptions to 'custom'. This tells reCAPTCHA that it should not create a user interface of its own.

Why is reCAPTCHA blocking me?

reCAPTCHA support Unfortunately it may happen to good users like you for a few reasons: You may be on a shared network that is being used abusively. Your internet service provider may have recently assigned you a suspicious IP address. The site you are trying to access may be currently under heavy attack.

Does reCAPTCHA V2 still work?

In short, yes they can. While reCAPTCHA v2 and v3 can help limit simple bot traffic, both versions come with several problems: User experience suffers, as human users hate the image/audio recognition challenges. CAPTCHA farms and advances in AI allow cybercriminals and advanced bots to bypass reCAPTCHAs easily.

Why reCAPTCHA is not showing sometimes?

One of the most common reasons why this error occurs is that of an outdated Chrome version. reCAPTCHA will actively look at the browser version before allowing you access. This is applicable to all browser versions, not just Chrome. In this case, the solution is to update Google Chrome to the latest version.


2 Answers

I had the same problem on all the websites I used reCaptcha. The CSS was somehow distorted. But I discovered that it was my line-height in the body tag. I believe you have the same problem too. Just use this css in your style sheet.

#recaptcha_area, #recaptcha_table { line-height: 0!important;}
like image 102
MarieWeb Avatar answered Oct 03 '22 08:10

MarieWeb


Just recently added Re-Captcha (05/2014), and the following css snippets work for me.

   .recaptchatable, #recaptcha_area tr, #recaptcha_area td, #recaptcha_area th {
        line-height: 0 !important;
   }
   #recaptcha_area input {
        height: auto;
        display: inline;
   }
like image 21
digitallica Avatar answered Oct 03 '22 07:10

digitallica