Announcement

Collapse
No announcement yet.

Centering Captcha on a form

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • CCI
    started a topic Centering Captcha on a form

    Centering Captcha on a form

    I've created an inquiry form with a CAPTCHA,and the CAPTCHA is on the bottom left side of the form. How do I center it? There are no format controls in the Security settings other than size of the picture and font.

  • byrae
    replied
    I had the same problem and I solved with this:

    Control -> Javascript / Form (onload)

    var x = document.getElementsByClassName("scFormPageText");
    var i;
    for (i = 0; i < x.length; i++) {
    x[i].style.textAlign = "center";

    if (x[i].getElementsByTagName('table')[0])
    {
    x[i].getElementsByTagName('table')[0].style.margin="0px auto";
    }
    }
    Last edited by byrae; 05-31-2016, 02:39 PM.

    Leave a comment:


  • yourguide
    replied
    Center Captcha

    I would like this ability also. This is a pretty old post... anyone found a way to do it?

    This does not look so nice:
    Screen Shot 2015-06-18 at 10.55.42 AM.jpg

    Leave a comment:


  • aducom
    replied
    Afaik you can't. I had to play with captions to make it a bit more aligned to the rest but even align to left does not align it to other labels as it is outside any table or div

    Leave a comment:

Working...
X