How can I align date and time fields?

  • YummyGarden
    Asked on January 13, 2016 at 1:33 PM

    I've tried searching the forums, but I cannot find a direct answer to my issue. There is plenty of space on my form, so why is the date and time fields not lined up together?

    It's like, on a half line down.

    See photo:

    Jotform Thread 743981 Screenshot
  • Carina
    Replied on January 13, 2016 at 4:35 PM

    Is this form embed on a website? If so please let us know the url so we can run further tests.

    I've test the form but could not find the same gap. From my tests, the difference of height between text-box fields and dropdown can help to create this situation:

    How can I align date and time fields? Image 1 Screenshot 20

    By increasing the textbox height this situation can be solved. You can add this css code or clone the demo form:

    .form-textbox

    {height: 36px;}

    Let us know if we can assist you further.   

     

  • YummyGarden
    Replied on January 13, 2016 at 5:03 PM

    The css code has not provided positive results. I am still having the same issue. It's the same when I view my form exclusively as well as the embed.

     

    Website here: http://www.barrelsoffunva.com/#!booking-form/mbb10

  • David JotForm Support Manager
    Replied on January 13, 2016 at 9:56 PM

    Please inject the following CSS code in order to fix it: http://www.jotform.com/help/117-How-to-Inject-Custom-CSS-Codes

    #id_71{

        margin-left: 20px !important;

    }

    .showAutoCalendar {

        margin-left: -10px !important;

    }

    Example: https://form.jotform.com/60128300833950

    How can I align date and time fields? Image 1 Screenshot 20

    Let us know if you need more help, we will be glad to assist you.

  • YummyGarden
    Replied on January 27, 2016 at 12:56 PM

    My problem still persists.

  • YummyGarden
    Replied on January 27, 2016 at 1:45 PM
    ​This still has not worked.
    ...
  • Mike_G JotForm Support
    Replied on January 27, 2016 at 4:56 PM

    Please add the CSS codes below to your form: How-to-Inject-Custom-CSS-Codes

    #id_71, #id_65, #id_64{

    padding-left: 36px !important;

    padding-right:18px !important;

    }

    .allowTime-container span{

    height: 44.815px !important;

    }

    .time-dropdown{

    height: 25px !important;

    padding-bottom: 4px !important;

    padding-top: 4px !important;

    }

    .allowTime-container .form-sub-label{

    margin-top: 0px !important;

    }

    .allowTime-container span:nth-child(1){

    min-width: 20px !important;

    margin-right: 5px !important;

    }

    Click the link to view the clone version of your form after I have added the codes above. https://form.jotform.com/60266308045956

    Let us know if you need any further assistance. Thank you.

  • YummyGarden
    Replied on January 27, 2016 at 5:08 PM

    This does work to fix the alignment, but it creates a dramatic issue with all of the other text boxes, making them extremely long.

  • Chriistian Jotform Support
    Replied on January 27, 2016 at 10:50 PM

    I checked the original form and the cloned form that my colleague made. It seems like the two look identical aside from the alignment of the date field in the cloned form.

    Original Form (https://form.jotform.com/60114971792155):

    How can I align date and time fields? Image 1 Screenshot 40

    Cloned Form (https://form.jotform.com/60266308045956):

    How can I align date and time fields? Image 2 Screenshot 51

    So far I don't seem to notice any field that is longer than the fields from the original. I also cloned the original form and applied the css on my end. The result was the same as the cloned form that my colleague made.

    My cloned form:

    How can I align date and time fields? Image 3 Screenshot 62

    Can you please provide us a screenshot of the issue you are having so we may investigate it further? We will wait for your reply.