Jump to content

How to change form input font size

Go to solution Solved by CoorlasArchitecture,

Recommended Posts

Posted (edited)

Site URL: https://www.coorlasarch.com/contact

I found the CSS code to change the form input text size, but it does not work for the First and Last name input fields

 

/* Form Block */
.form-wrapper .field-list .field .field-element {
  font-size: 1.2rem;
}

 

Any idea how to include those name fields? I'm not extremely CSS savvy.

Thanks in advance,
Stephen 

Edited by CoorlasArchitecture
  • Replies 5
  • Views 684
  • Created
  • Last Reply

Top Posters In This Topic

Posted (edited)
30 minutes ago, CoorlasArchitecture said:

Site URL: https://www.coorlasarch.com/contact

I found the CSS code to change the form input text size, but it does not work for the First and Last name input fields

 

/* Form Block */
.form-wrapper .field-list .field .field-element {
  font-size: 1.2rem;
}

 

Any idea how to include those name fields? I'm not extremely CSS savvy.

Thanks in advance,
Stephen 

Hi Stephen, 

Please go to design>custom CSS and paste the following code
sqs-block-form .field-list .caption {
    color: #000;
    font-size: 1.2rem !important;
}
Please let me know how it goes, and ask for help if it does not work. Please mark the answer as correct if it works as it will help others in the community with same question. Thanks!
 

Edited by TheSquareSpacer

SQSPStarterLogo.png.b5b66777b3d25385a0a120e9b086354f.png

Muhammad Waqas
Web Expert - SQSP  Starter
Squarespace Designer & Customization Specialist
📧 
waqas@sqspstarter  🌐 sqspstarter.com

 

Posted
30 minutes ago, TheSquareSpacer said:

Hi Stephen, 

Please go to design>custom CSS and paste the following code
sqs-block-form .field-list .caption {
    color: #000;
    font-size: 1.2rem !important;
}
Please let me know how it goes, and ask for help if it does not work. Please mark the answer as correct if it works as it will help others in the community with same question. Thanks!
 

Hello - unfortunately this does not seem to change anything when entered in the CSS. I deleted my previous CSS and entered yours, and it did not work. I also tried to keep both, and that did not work for the First and/or Last name fields.

Posted

I found a longer CSS code with more modifiers such as font style and color,  and manipulated it to only change the font for all fields including the First and Last Name:

 

.form-wrapper .field-list {
 .field {
   .caption {
     /* Captions of fields (eg First Name, Last Name) */
     font-size: 1.2rem;
     .field-element {
       /* Text in the field boxes (First Name, Last Name) */
       font-size: 1.2rem;
     }
   }
   .field-element {
     /* Text in the field boxes (inc placeholder text) */
     font-size: 1.2rem;
   }
 }  
}

 

Not sure if this can be paired down further. When I eliminate the "Captions of fields" section it stops working on the First Name, Last Name fields. I'm not sure of that's because the name fields are hosted in that Captions of fields bracketing?

Can this CSS code be more efficient?

Posted
9 hours ago, CoorlasArchitecture said:

I found a longer CSS code with more modifiers such as font style and color,  and manipulated it to only change the font for all fields including the First and Last Name:

 

.form-wrapper .field-list {
 .field {
   .caption {
     /* Captions of fields (eg First Name, Last Name) */
     font-size: 1.2rem;
     .field-element {
       /* Text in the field boxes (First Name, Last Name) */
       font-size: 1.2rem;
     }
   }
   .field-element {
     /* Text in the field boxes (inc placeholder text) */
     font-size: 1.2rem;
   }
 }  
}

 

Not sure if this can be paired down further. When I eliminate the "Captions of fields" section it stops working on the First Name, Last Name fields. I'm not sure of that's because the name fields are hosted in that Captions of fields bracketing?

Can this CSS code be more efficient?

Did you solve or still need help?

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

  • Solution
Posted
10 hours ago, CoorlasArchitecture said:

.form-wrapper .field-list {
 .field {
   .caption {
     /* Captions of fields (eg First Name, Last Name) */
     font-size: 1.2rem;
     .field-element {
       /* Text in the field boxes (First Name, Last Name) */
       font-size: 1.2rem;
     }
   }
   .field-element {
     /* Text in the field boxes (inc placeholder text) */
     font-size: 1.2rem;
   }
 }  
}

This code seems to have solved the issue. 

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • 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.