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

    What is the CSS code to change an individual label's width?

    Asked by ummanes on April 26, 2011 at 11:03 AM

    I want to add a comment box next to a drop down menu, but I'm having problems aligning the box. I injected CSS code to make the label invisible, but the space still seems to be allotted despite no text being shown. I tried this:

    #label_45 { visibility:hidden; width:5px }

    Screenshot
  • Profile Image
    JotForm Support

    Answered by NeilVicente on April 26, 2011 at 11:54 AM

    Hi,

    I believe that this is what you are trying to achieve:

    Instead of using visibility:hidden, which still keeps the space that the element occupies, try this:

    #label_45 {
    display:none;
    }

    Hope this post answers your question. If you have other queries, feel free to contact us again.

    Regards,
    Neil

  • Profile Image

    Answered by ummanes on April 26, 2011 at 12:22 PM

    Neil,

    This CSS injection takes out the text area for me as well. Is there a way to only remove the label, leaving a text area to type comments?

     

    Thanks

  • Profile Image
    JotForm Support

    Answered by NeilVicente on April 26, 2011 at 12:28 PM

    My solution should have worked flawlessly, but it appears that you have deleted the whole text area from the form itself. Please insert the text area again.

    Neil

  • Profile Image

    Answered by ummanes on April 26, 2011 at 12:41 PM

    Sure enough that did it, I was the only flaw in your solution.  Thank you.

  • Profile Image
    JotForm Support

    Answered by NeilVicente on April 26, 2011 at 12:56 PM

    You're welcome. Glad that I was able to help. Feel free to contact us again if you encounter any problems or if you just need assistance with creating your forms. Thank you.

    Neil