Jump to content

Form button color?

Go to solution Solved by AndyB,

Recommended Posts

Hey everyone

Is there a way to change the background color of the "submit" button on a form? 
 

I want the submit button to have white letters on a black background and right now it's exactly the opposite.  The rest of the buttons on my site are right so it seems like the form button isn't following the site wide styles. 

 

Is this something that can be controlled with custom code and if so..... what would that look like? 


Thanks in advance!

Link to comment

Hi,

Can you share link to page where you use form? We can help easier

You can also try adding this to Design > Custom CSS

div.form-block {
	background-color: black !important;
	color: white !important;
}

 

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

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment
  • Solution

This should do the trick.

In Custom CSS:

form input.button {
    background: #000 !important;
    color: #fff !important;
}

...OR...

In the page header:

<style>
form input.button {
    background: #000 !important;
    color: #fff !important;
  }
</style>

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.