Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Jun 2013
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    reCAPTCHA and CSS

    I'm currently embedding reCAPTCHA for a client's website, but I've noticed that while it appears consistently in IE and Chrome, it doesn't in Firefox; it is out of sync with the rest of the layout. I've been using a lot of CSS for this website, and I was wondering if it was possible to change the CSS for the reCAPTCHA?

  • #2
    New Coder 4B/75/73/41/'s Avatar
    Join Date
    Nov 2008
    Posts
    56
    Thanks
    1
    Thanked 3 Times in 3 Posts
    I'd rather not have comments then to annoy people with captcha.

  • #3
    Master Coder felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, Australia
    Posts
    6,639
    Thanks
    0
    Thanked 649 Times in 639 Posts
    Quote Originally Posted by 4B/75/73/41/ View Post
    I'd rather not have comments then to annoy people with captcha.
    If you are going to use a CAPTCHA then you can use one that your legitimate visitors will not even see - such as one that discards forms filled out too quickly.

    RECAPTCHA is primarily intended to decode words in books that were scanned in to convert to digital form where certain words can't be made out properly. Basically RECAPTCHA simply asks lots of people their opinion of what the hard to read word is to try to make sense of it - and as a side effect helps to block spambots.
    Stephen
    Learn Modern JavaScript - http://javascriptexample.net/
    Helping others to solve their computer problem at http://www.felgall.com/

    Don't forget to start your JavaScript code with "use strict"; which makes it easier to find errors in your code.

  • #4
    New to the CF scene
    Join Date
    Jun 2013
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I solved my problem - it turned out I had the PHP code accompanying the reCAPTCHA picture inside the fieldset. It has to be OUTSIDE the fieldset:

    Code:
    <fieldset>
    		<label>Name</label><div class="text-container"><input type="text" class="text" name="name" value=""></div>
                <label>Phone</label><div class="text-container"><input type="text" class="text" name="phone" value=""></div>
    			<label>Email</label><div class="text-container"><input type="text" class="text" name="email" value=""></div>
    			<label>Message</label><div class="textarea-container"><textarea class="textarea" name="comment"></textarea></div><br>
     		</fieldset>   
          <?php  <!-- SHOULD APPEAR AFTER THE FIELDSET -->
              require_once('scripts/recaptchalib.php');
              $publickey = "6LfNFuMSAAAAAGcuv6z4agjgm1fX9mrNTFqvvjCX"; // you got this from the signup page
              echo recaptcha_get_html($publickey);
            ?>
    Now the reCAPTCHA appears in Firefox properly.


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •