Jump to content

Can't apply styling to non-active contact form fields

Go to solution Solved by paul2009,

Recommended Posts

Not sure what i'm doing wrong here, I'm using css to change appearance of the form fields on contact page but it doesn't seem to be working.

Quote

CODE THAT IS NOT WORKING
// Form Fields
.form-wrapper .field-list .field .field-element {
  background-color: #000 !important;
  border: 1px solid #333 !important;
  color: #fff !important;
  outline: none !important;
}

 

I use this code which works on the fields when active etc but normal state fields I cannot seem to get them to change.. 

Quote

// Form Fields Active
.form-wrapper .field-list input:focus, .form-wrapper .field-list textarea:focus {
  background-color: #000;
  border: 1px solid #333;
  color: #fff;
  outline: none;
}
// Dropdown Fields
.form-wrapper .field-list .field select {
  padding: 10px;
  background-color: #000;
  border: 1px solid #333;
  color: #fff;
  margin: 0 0 30px;
  outline: none;
}

I'm trying to achieve all fields to look the same in all states other than active when the border is bright white. 

Help appreciated thanks 🙂https://www.desnoir.studio/contact

Link to comment
  • Solution
2 hours ago, Desnoir said:

Not sure what i'm doing wrong here, I'm using css to change appearance of the form fields on contact page but it doesn't seem to be working.

Quote

CODE THAT IS NOT WORKING
// Form Fields
.form-wrapper .field-list .field .field-element {

Your first block of CSS isn't working because it is using old classes that don't exist on the new Form Block. Squarespace replaced the old Form Block in May 2023, so instead of:

.form-wrapper .field-list .field .field-element

...you'll want to use something like:

.form-wrapper .field-list .form-item input 

Did this help? Please give feedback by clicking an icon below  ⬇️

About me: I'm Paul, a SQSP user for over 18 yrs and a Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥.
Work: Founder of SF.DIGITAL, providing 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 below. Buying a coffee is optional.

Book paid help with domains: Connect a GoDaddy domain. Connect a Squarespace Domain. Domain assistance

Link to comment

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.