I am using Joomla ReCaptcha on my custom module using the below code. The capthca comes and it works great but it looks very ugly.... :-(


$dispatcher = JEventDispatcher::getInstance();


    <div id="dynamic_recaptcha_1"></div>

enter image description here

Any suggestions to make it neat and fit?

  • A link to the website (if available online) might help. – Neil Robertson Feb 10 '16 at 2:10

You can set recaptcha element width with css like that:

Place those lines in your module's php file

$document = JFactory::getDocument();
$recaptcha = '#dynamic_recaptcha_1>div>div {'
    .'width: 100% !important;'
    .'border-radius: 4px;'
    .'overflow: hidden;'
    .'max-width: 300px;'

But this style has only 1 problem, it makes the recaptcha logo invisble.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.