JotForm User Guide / Advanced Features /

Customize Your Form Using Custom CSS Codes

Customize Your Form Using Custom CSS Codes

UPDATE: Let's create fantastic forms with Form Designer video course which allows you to generate beautiful form designs without knowledge of CSS!

First, you need to learn how to inject custom CSS on your form before you can start customizing your form using the CSS codes provided below.

Set a Background Image to the Page

.supernova {
background-repeat: no-repeat;
background-position: center top;
background-attachment: fixed;
background-size: cover;}

Replace the URL with your background image.

Demo here

Make Page Background Transparent

.supernova {

Remove the Spacing Around the Form

.jotform-form {

Make Form Background Transparent

.form-all {

Change the Header Background Color

Change the Subheader Text Color
.form-subHeader {color:#2408FC !important;}

Change all the Sub Label Color
.form-sub-label {color:#FFCC66;}

Change the Yellow Highlight Effect Color
.form-line-active {background:#baffb9;}

Change the Form Required Star Color
.form-required {color: blue !important;}

Remove the Red Background on Error Messages
.form-line-error {background:transparent;}

Align Form to the Left
.form-all {margin:0;}
Preview Here

Instantly Create Two Column Layout on Shrunken Fields
.form-line-column {width: 50%;}.form-line-column:nth-child(even) {clear: left;}

Demo here

Make credit card fields in all payment integration mobile responsive

Copy the CSS codes here:

Demo here

If you can't find the CSS code you need for your form or if you need help with customizing your form, feel free to leave comments below.

Contact Support:
Our customer support team is available 24/7 and our average response time is between one to two hours.
Our team can be contacted via:
Contact JotForm Support:

Send Comment


See all comments
  • karissatattoo

    When I select a font, it does not stay when I hit publish?

  • wcmarrocco

    May I please have the css code to edit subheader font size?

    Thank you.


  • lshirling

    On my form I set up a table. The table looks fine but when I preview it you see 2 narrow fields below it. I don't know what they are but I would like to get rid of them.

    Thanks in advance,

  • etab

    I'd like to change the color of the section collapse header background. What is the code?

  • carlyhavard

    Hello, initially the form looked perfect but I have had a few dummy runs with friends and the feedback is mainly positive but on the mobile questionnaire some of the words have become misaligned, ie) drugs is now drug and the s is on the following line. Any advice would be fab. Also can you tell if the signature box is working? 1 of my friends had a problem with it. Thanks, look forward to your help. Best wishes, Carly.

  • eduddaguiar

    Bom dia!
    Na opção de layout cartão eu não consigo alterar a imagem de agredeciemento.
    Como posso alterar as dimensões da imagem?

  • selectpq


    I am using 'spreadsheet to form' but can't find a way to increase the textbox height to 42px.

    It is not an option in the Advanced Designer.

    Can anyone tell me the CSS code to inject? Or another way to do it?

    Thanks for any help. :-)

  • dawn.townsend

    On my jot form, I am trying to put my salon name in the body context on my covid-19 form. How do I do that?
    Thank you,

  • Cityimaging

    I would like to add a sub label to a widget please.

  • NicolCorcExpo

    I'm not sure if this is the right place to put this question, but it seems it might be. I use collapsible sections a lot and have often wondered if there is a way to, I'm guessing using CSS, to create nested collapsible sections? I'm thinking so that they'd look something like the images here:

    Further, is there a way to assign specific colors by section and/or level?


  • rugareruwodo

    Please help i want my form to use a font which is not listed under the font list.
    It is called Raleway

    what code do i need to use to change the whole form to do this.


  • info.balancedinvest

    I changed the form's CCS code, but when previewing the form it does not change the style I coded for. Any help would be appreciated!

  • LEDAGrants

    Hi, how would I add a block to the address element, for example if I wanted to add a block to ask about what parish they are located in. There seems to be no way to add it using the preset options so how could I code this in using CSS?


  • ChristChurchAnglican

    Hello, I need to change the colour of the background of the column labels. Can you please advise?


  • jmmi2757

    Sugerencias para mejorar y alguna pregunta:

    1º Cómo se puede cambiar fuente y tamaño de las cajas de textos donde escribe el cliente y no me refiero a estilo de las etiquetas.

    2º Al duplicar cualquier campo etc. debería ponerse también su tamaño igual no dibujarlo en formulario final, con un click debiera ser suficiente.

    3º Añadir páginas sueltas de formularios propios en otros sin tener que clonar todo o volver a poner campos uno a uno.

    4º Poder seleccionar en panel izquierdo (diseño) para duplicar campos en grupos grandes no individualmente.

    5º Ampliar los comandos de condiciones lógicas para adaptarlos a las necesidades.


  • DeMelksnor

    which CSS to add to the inventory widget to add options to the product?
    Now there's only one quantity selection field. I want to add a text description of the product. Sometimes I want to add an option to the product.

  • bintalrohjabar

    How To change Name in one Fields?

  • WayDigital

    how to validate if certain fields are filled and if some are not filled, flag.

  • Eklincoltd

    How can I make my logo visible after creation.

  • paulmarsh

    Hi i want to change the size of the input fields name, email, phone number they don't look great and also they are too small hope you can help. Thank you

  • assistenciasaudescs


    How can I change the language of the Appointments Element to Portuguese (Brazil)?

    Best regards

  • SevenKeysHomes

    I am using the widget Narrative Fields and want to make its template text the same as my form layout which is Arial 14. What is the custom CSS Code to do this?

  • sara_chejanovich

    Hi I would like to make some field on my form, to be defaulted to an X in red (to show where the customer has to sign on a particular page). I cannot find how to do so on CSS for my form.
    the field I am triyng to make it appear in a printed X red is #input_736

    My form is

    can you help me with this?

    Best Regards

  • anjarmath

    How can i customize my submit button?

  • cjadeltas1975

    How can I change a number format to a currency format such as $###.##? I've tried the text and the number elements with no luck.

  • CITADROffice

    I've changed the auto response email and saved it, but it is still sending out the old one. Is there a reason for this or an option I should choose?

  • CITADROffice

    Hi, I need the code to create a sublabel for thsi radio button question: Are you the Onsite Event Host?

    Here's the jotform:

  • hmpatten

    Can I make "Label Width" different on different questions or is it all or nothing?

  • JKINnovations

    Can I add a picture of my product?

  • jeremyestes

    I am looking to be able to make numbers (dollar amounts) show the dollar sign and also the comma in the value. Thank you.

  • Harald Metzler

    Liebe Entwickler,

    Ist es möglich, die zuvor eingegebenen Formulardaten in einer Datenbank zu speichern um sie dann in ein anderes Formular einzutragen?

    Danke für die tolle app, weiter so!

    Beste Grüße aus Deutschland
    Harald Metzler

  • Tabbitt

    Hello! So I'm using the Scale Rating Module on my form.
    I want my clients to rate us from 1-11.
    I want to put right on the side of the number "11" a smiley face.
    The CSS ID for number "11" is "#input_30_11"

    So... Before trying to put a smiley face I want to try other more simple stuff, like putting text-decoration declarations... You know, just for the sake of testing... So I went to my CSS section on the Form Designer Section and put some code...
    And it's not working, I'm not seeing any changes... Any ideas on how could I make this happen?

    Here is the code...

    #input_30_11 {
    text-decoration: line-through;

    I'll be waiting for your response,

  • MAfestival

    How can I change the color of "clear" to white under the signature-box of the signature widget? What is the code for this?

  • Izzy_w

    Hi! Anyway to change to word "Coupon" to "Promo"?

  • christine.mburu

    Hello i would like to add a custom css that if a customer selects one section for a service e.g content writing that they in turn need to attach a file for the service picked

  • cpatel3271990

    I would like to add a "if" function to my form. For example, if the person completing RSVP is "Jack Smith" and I only have 2 RSVPs for the family of Jane Smith, I want the response to the question "How many total attending event" to have a drop down with options limited to 1 or 2. Similarly, if "Jane Doe" has maximum 4 RSVPs, then I want the total attending response to be limited to 1,2,3 or 4 only.

  • BluePearlsEnrichmentFoundationI


    I would like to change the font for my main form from black to white. What is the code for white?

    Thank you.

  • flavorcupcakery

    Is there a way to use custom CSS in the Date/Time widget that will prevent people from selecting both the current date AND the next day?

  • sebeller

    I want to increase the length of the text boxes in the Dynamic text box widget. I assume it could be done via custom CSS code. Please explain the process and code for doing this.

  • BD_Financial


    I've created a table to capture contact info and was hoping to have the option to check email and phone for validity. I notice there is a widget that allows for email checking but I was hoping to add the function to the existing table if possible.


  • mario.shonga

    I need a widget that can give long text entry with date and can add multiple entries of long txt

    So a date field, below which would be a long text window
    below a plus button to add another combo of date and long text fields

  • eventspeople

    How do I make the font in my text to be Lato? I've changed all fonts in Lato, put in the code too but text created are not in Lato font.

  • Childersla

    Can I get some help with a CSS code to split this checklist widget into 2 columns?

  • bestsmile18

    Hi there,

    we would like to have the language choice for our form as a first window to have it more prominent for the user to be choosen.

    Is that somehow possible without code? If not, do you have any documentation on such a use case?


  • BarJalocals

    I want to remove some bottons on the form

  • thorstipi

    How do I use the CSS to change the number format in a calculated field? At the moment it looks like General formatting in Excel, but I want it to show as a currency field (£)

  • liyana.dmmc

    i need to limit the date of reservation.The date picked must be minimum 3 days before the reservation date
    For example. I want to book session on 16 October 2019, so i have to book on before 13 October.

    I try to use widget but do not find this function.

    Hope you can help me on this

  • iCare24Group

    Managed to do some CSS tweaks however any of the Modules, do not fall within the CSS they break the form as you cannot continue or they cover the page etc..
    this is the form.
    the first issue starts at i believe page 12.
    there are multiple parts of the forms that use widgets. including terms and conditions that do not fall within the CSS

  • mahmo2014

    How a multiple choice calculation works؟

  • lsgphilanthropy

    How do I change the color of a widget spreadsheet?