Jump to content

How can I change the font size on a form field?

Recommended Posts

Posted

Bradford template - place to fill in the forms as a small font - I cannot change the font size

  • Replies 4
  • Views 13.4k
  • Created
  • Last Reply
Posted

@rcsfonseca You can change the font sizes on forms using Custom CSS. You can decide on the font size of names, descriptions and field contents by changing the values below:


/***************************************
Styling changes to Form
***************************************/
.form-wrapper .field-list {
 .title {
   /* Title of field (eg Name, Subject, Message) */
   font-size: 18pt;
 }
 .description {
   /* Description */
   font-size: 26pt;
 }
 .field {
   .caption {
     /* Captions of fields (eg First Name, Last Name) */
     font-size: 16pt;
     .field-element {
       /* Text in the field boxes (First Name, Last Name) */
       font-size: 28pt;
     }
   }
   .field-element {
     /* Text in the field boxes (inc placeholder text) */
     font-size: 20pt;
     /* Shading colour of all boxes */
     background: #F9FFE5;
   }
 }  
}


Me: I'm Paul, a SQSP user for >18 yrs & Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥.
Work: Founder of SF.DIGITAL. We provide high quality original extensions to supercharge your Squarespace website. 
Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links.
Forum advice is completely free. You can thank me by selecting a feedback emoji. Buying a coffee is generous but optional.

🤒 I'm currently in hospital and may not respond quickly to your posts.

  • 5 months later...
Posted

This is so great!

which part of this would control the "answer" text in a form field question? For example, choosing "yes" or "no" in a multiple choice question - the answers themselves, i.e. "yes" and "no" are still in a tiny font. I have been unsuccessful in changing them using this code and am probably missing something.

You can see an example here:http://www.highcountrycaregiverfoundation.org/program-events/day-break-tues-9-6-2016

see the question "will your care recipient be attending?"

Posted

Checkboxes are field options. You can change them with something like this:


.form-wrapper .field-list .field .option {
   font-size: 16px;
}


Me: I'm Paul, a SQSP user for >18 yrs & Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥.
Work: Founder of SF.DIGITAL. We provide high quality original extensions to supercharge your Squarespace website. 
Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links.
Forum advice is completely free. You can thank me by selecting a feedback emoji. Buying a coffee is generous but optional.

🤒 I'm currently in hospital and may not respond quickly to your posts.

  • 1 month later...
  • 7 months later...
Posted

If you only want to change the color of the Form Block fields, you can use this code instead:


 form {}
form input[type="text"],
form textarea {
  color: black !important;
  }





Archived

This topic is now archived and is closed to further replies.

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.