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

Looking for help with a project?
💻 www.connectionmadedesign.com
 for hire on Upwork (Top Rated Plus)

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.