What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.

At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.

We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.


  • Profile Image

    css help with date time width

    Asked by beatsahead on October 25, 2015 at 05:00 AM

    Would appreciate help with the form at 

    http://dev.beatsahead.com/portfolio/corporate-djs/

     

    I am pleased with the overall look but would like to see the minutes and hours inside the time fields, and reduce the padding between fields.

     

    Page URL:
    http://dev.beatsahead.com/portfolio/corporate-djs/

    date time and href hours a
  • Profile Image
    JotForm Support

    Answered by Kevin_G on October 25, 2015 at 02:57 PM

    I've cloned your form and made some test,here is how it looks with the changes :

    You can take a look to my form and if this is what you want , go to Designer tool and paste this CSS code : 

     

    .form-section.page-section {

        padding : 20px 1px 1px 6px;

    }

     

    .allowTime-container {

        width : 90px !important;

        position : absolute;

        margin-left : 70px;

    }

    Let us know if you need more help.

     

  • Profile Image

    Answered by beatsahead on October 25, 2015 at 04:19 PM

    Thanks, but its the width of the hours/minutes I want to increase not the space between them

  • Profile Image
    JotForm Support

    Answered by Kevin_G on October 25, 2015 at 05:00 PM

    Take a look to the changes now, here is my form : 

    https://form.jotform.com/52975934188977?

    And if this is what you are trying to achieve, this is the CSS code that I'm using :

    .form-section.page-section {

        padding : 20px 1px 1px 5px;

    }

     

    .allowTime-container {

        width : 100px !important;

        position : absolute;

        margin-left : 52px;

    }

     

    .form-sub-label-container {

        width : 43px !important;

    }

     

    .form-sub-label-container div {

        display : none;

    }

     

    [data-type="control_datetime"].allowTime .allowTime-container .form-sub-label-container:last-child{

        margin-left:-5px;

    }

     

    If you need more help, feel free to contact us.