How to Customize the Submit Button With CSS

April 28, 2026

Aside from the Submit button’s built-in styles, you can take full control by customizing it with CSS. Tailor its colors, typography, spacing, and hover effects to match your form’s design and brand identity. A well-designed submit button not only looks better, but it also builds trust, guides user attention, and creates a smoother, more satisfying submission experience, helping you boost engagement and improve conversion rates.

Whether you’re building a new form or editing an existing one, you can customize the submit button with CSS in just a few steps. Here’s what to do:

  1. In Form Builder, click on the Paint Roller icon on the top-right side of the page.
Form Designer icon in the Form Builder
  1. Then, in the Form Designer menu that opens, go to the Styles tab.
  2. Next, scroll down to the Inject Custom CSS section, then enter or paste your CSS code into the code editor box.
  3. Once you’re done, click on the X icon in the top right corner of the menu to close it, or click anywhere outside the menu.
Form Designer panel in the Form Builder

Custom CSS Codes for the Submit Button

We’ve put together a selection of ready-to-use CSS snippets you can quickly inject to customize your form’s submit button. These examples are designed to help you enhance its look and feel, add subtle animations, and create a more engaging, on-brand submission experience, no advanced CSS skills required.

Curious how it works on a live form? Check out this demo.

/* Change the basic color of the submit button */
.form-submit-button {
	background: #0066A2;
	color: white;
	border-style: outset;
	border-color: #0066A2;
	height: 50px;
	width: 100px;
	font: bold 15px arial,sans-serif;
	text-shadow: none;
}
/* Change the color of the submit button when hovered */
.form-submit-button:hover {
	background: #ff7c14;
	color: #fff;
	border: 1px solid #eee;
	box-shadow: 5px 5px 5px #eee;
	text-shadow: none;
}
/* Turn the submit button into a gradient background with hover effect */
.form-submit-button {
	background: #0066A2;
	color: white;
	border-style: outset;
	border-color: #0066A2;
	height: 50px;
	width: 100px;
	font: bold15px arial,sans-serif;
	text-shadow: none;
}
.form-submit-button:hover {
	background: #ff7c14;
	color: #fff;
	border: 1px solid #eee;
	box-shadow: 5px 5px 5px #eee;
	text-shadow: none;
}
/* Add a Pulse or Glow on hover */
.form-submit-button:hover {
  box-shadow: 0 0 15px rgba(1,106,188,0.6);
}
/* Add an emoji next to the submit button text */
.form-submit-button::after {
 content: " 🚀";
}
/* Add a Gradient that also lifts the submit button on hover with left-arrow icon */
.form-submit-button {
  background: linear-gradient(135deg, #0066A2, #00c6ff);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 14px 28px;
  font-weight: bold;
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;
}
.form-submit-button::after {
  content: " →";
  position: absolute;
  right: 20px;
  opacity: 0;
  transition: all 0.25s ease;
}
.form-submit-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}
.form-submit-button:hover::after {
  right: 14px;
  opacity: 1;
}
.form-submit-button:active {
  transform: scale(0.97);
}
/* Add Glassmorphism and Glow effect on the submit button */
.form-submit-button {
  background: rgba(255,255,255,0.1);
  color: #0066A2;
  border: 1px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 12px 24px;
  transition: all 0.3s ease;
}
.form-submit-button:hover {
  background: rgba(0,102,162,0.15);
  box-shadow: 0 0 20px rgba(0,102,162,0.4);
  color: #004a78;
}
/* Add a solid color that shimmers the submit button, and also lift it up a little */
.form-submit-button {
  background: #0066A2;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;
}
.form-submit-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: rgba(255,255,255,0.3);
  transform: skewX(-25deg);
}
.form-submit-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.2);
}

.form-submit-button:hover::before {
  animation: shimmer 0.8s;
}
@keyframes shimmer {
  100% { left: 125%; }
}
/* Add an outline to the submit button that also fills a color that glows */
.form-submit-button {
  background: transparent;
  color: #0066A2;
  border: 2px solid #0066A2;
  border-radius: 999px;
  padding: 12px 26px;
  transition: all 0.3s ease;
}
.form-submit-button:hover {
  background: #0066A2;
  color: #fff;
  box-shadow: 0 0 12px rgba(0,102,162,0.6);
}
CSS
/* Transforms the submit button into a bold-CTA like style */
.form-submit-button {
  background: linear-gradient(135deg, #ff7c14, #ffb347);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 14px 30px;
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 0.5px;
  transition: all 0.25s ease;
}
.form-submit-button:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(255,124,20,0.4);
}

Basic Color Codes for the Submit Button

We’ve also included a selection of basic color codes to easily style your form. These can serve as a quick starting point for customizing your design, helping you create a clean, consistent look without having to pick colors from scratch.

Color NameHex Code
Red#FF0000
Orange#FFA500
Yellow#FFD700
Green#008000
Blue#016ABC
Indigo#4B0082
Violet#8F00FF
Light Blue#B9DFFF
Cyan#00FFFF
Teal#008080
Lime#32CD32
Pink#FFC0CB
Magenta#FF00FF
Purple#800080
Brown#8B4513
Beige#F5F5DC
White#FFFFFF
Gray#EEEEEE
Dark Gray#555555
Black#000000

Send Comment:

Jotform Avatar
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Comments:

  • Wanna Marrry Me - Profile picture
  • Angela Lacey - Profile picture
  • Shiraj Kaul - Profile picture
  • Hacienda CDC - Profile picture
  • imran - Profile picture
  • Santosh Achwani - Profile picture
  • harinir686 - Profile picture
  • Saptarshi - Profile picture
  • Afreedi - Profile picture
  • sachin jangid - Profile picture
  • Downes_j - Profile picture
  • Miriam Thomas - Profile picture
  • gerardlobo - Profile picture
  • ailsargh - Profile picture
  • weckholz - Profile picture
  • kamini - Profile picture
  • Yolanda L - Profile picture
  • muhammad ramzan - Profile picture
  • mangesh - Profile picture
  • nanoputian - Profile picture
  • rajkumarvarier - Profile picture
  • jgcarguy7 - Profile picture
  • fpalarca - Profile picture
  • Sharan - Profile picture
  • Polycarp - Profile picture
Still have unanswered questions?

We’re here for you 24/7, anytime you need us day or night. Have a question or need a hand with something? Our team is always ready to help out.