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

    Text color changes when clicking dropdown

    Asked by Returntool on February 12, 2016 at 05:30 AM

    I have a dropdown where the Label text is in white, but when i push the dropdown it changes to black. When you select and option in the dropdown the label text changes back to white.

    The text of the dropdown options need to be black otherwise the are not vissible against the white field background, but i think the problem has something to do with that.

    I has been seen on

    - Chrome 48.0.2564.103 (64-bit) for Mac

    - Firefox 44.0.1 for Mac

    - Safari for iPhone

    I have not tested other browsers.

    How can i solve this?

    Screenshot
    problem style size label
  • Profile Image
    JotForm Support

    Answered by Nik_C on February 12, 2016 at 09:04 AM

    Hello there,

    I'm not sure if I understood you right so I'll give you both options and hope that that is what you're looking for.

    So if you want to have black letters of the options in the drop-down menu, and the label 'Business type' to be always white, you should put this in your CSS(#label14 is ID of the label 'Business type'):

    #label_14 {

        color : white;

    }

    It will look like this:

    On the other hand, if you would like to have that title 'Business type' always black, than you should put this in your CSS:

    #label_14 {

        color : black;

    }

    Hope it helps, please let me know if you have more questions.

     

    Best regards.