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 to change width of the drop down field

    Asked by BabysoftCC on February 18, 2016 at 12:48 AM

    This is not working in CSS to change the drop down box width:

    #input_42 {

        width: 200px !important;

     

    Let me know if you see what is wrong on my page.  Thank You!

    Page URL:
    https://form.jotform.com/60110529691148

    css drop down drop down field drop down box change width max-width
  • Profile Image
    JotForm Support

    Answered by Jan on February 18, 2016 at 08:03 AM

    The reason why the drop down is not changing is because you set a max-width rule for all of the drop downs. The max-width is 60px, so it means that it is the maximum width of the drop downs.

    Use this CSS code to disable the max-width.

    .form-dropdown {
    max-width: none !important;
    }

    Here's a guide on how to inject custom CSS on the form. Let us know if you need further help. Thank you.