How to align the button next to the other fields?

  • Profile Image
    aysekocamaz
    Asked on June 20, 2015 at 05:00 AM

    Resimdeki gibi nasıl yapabilirim ?

    Aradaki mesafeyi kısaltma

    Gönder buton yakınlaştırma

    Form kodu:
    http://form.jotformeu.com/form/51665733522355

    Css:
    #cid_2 {position: relative !important;

    top: 8px !important;

    height:12px;}

    #first_1 { width:150px !important; height:13px; }

    #last_1 { width:150px; height:13px; }



  • Profile Image
    Ben
    Answered on June 20, 2015 at 12:44 PM

    The best way to do this is to add this code:

    #id_1 {
        margin-right: 0;
        padding-right: 0;
    }
    #id_2 {
        margin-left: 0;
        padding-left: 0;
    }

    This will align the submit button right to the 2nd field - as shown on your image.

    Now if you wish to have the field centered as well all you should add is the top: -16px to it as well, so it looks like this:

    #id_1 {
        margin-right: 0;
        padding-right: 0;
    }
    #id_2 {
        margin-left: 0;
        padding-left: 0;
        top: -16px;
    }

    You should add this CSS code to your jotfom's custom CSS field by following the steps here: Inject Custom CSS Codes Do only note to add it after all of the other code.

    Do let us know if you have any further questions and we would be happy to assist.