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

    How to remove borders around text box?

    Asked by Aazmi on July 14, 2016 at 11:04 AM

    Hi,

    I would like to remove all the borders around the text boxes in these two forms:

    https://form.jotform.com/61525108558255

    https://form.jotform.com/61595263756264

    So that they look like the text boxes without borders in this form:

    https://form.jotform.com/61933997891274 

     

    Can you please help me do this?

    text box how to custom css code borders remove
  • Profile Image
    JotForm Support

    Answered by John_Benson on July 14, 2016 at 12:20 PM

    I can see what you mean, there are rounded borders around the text boxes.

    Please insert this custom CSS code to your form in order to remove the borders around the text boxes. Here's the code:

    .form-textbox, .form-dropdown { 
    border: 1px solid #a1a1a1 !important;
    border-radius: 0px !important;
    -moz-box-shadow: 0 1px 2px #eee inset !important;
    -webkit-box-shadow: 0 1px 2px #eee inset !important;
    box-shadow: 0 1px 2px #eee inset !important;

    input:focus, textarea:focus, .form-upload:focus, .form-dropdown:focus  { 
    border: 1px solid #a1a1a1 !important;
    border-radius: 0px !important;
    -moz-box-shadow: 0 1px 2px #eee inset !important;
    -webkit-box-shadow: 0 1px 2px #eee inset !important;
    box-shadow: 0 1px 2px #eee inset !important;

    .form-line-error input:not(#coupon-input), .form-line-error select, .form-line-error textarea, .form-validation-error { 
    border: 1px solid #ff3200 !important;
    border-radius: 0px !important;
    -moz-box-shadow: 0 1px 2px #eee inset !important;
    -webkit-box-shadow: 0 1px 2px #eee inset !important;
    box-shadow: 0 0 3px #ff3200 !important;

    .form-line-error input, .form-line-error textarea { 
    border: 1px solid #ff3200 important;
    border-radius: 0px !important;
    -moz-box-shadow: 0 1px 2px #eee inset !important;
    -webkit-box-shadow: 0 1px 2px #eee inset !important;
    box-shadow: 0 0 3px #ff3200 !important;

    Here's a guide: How-to-Inject-Custom-CSS-Codes

    Hope that helps. Let us know if you need any further assistance. Thank you.