Created
February 5, 2014 20:42
-
-
Save scottmcdaniel/8832606 to your computer and use it in GitHub Desktop.
Styling Gravity Forms Error Messages
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Gravity forms error handling - February 5, 2014 */ | |
/* ############################################### */ | |
/* Make the error stand out */ | |
.gfield_error{ | |
background-color: white; | |
color:#b94a48; | |
} | |
/* Prepend the error message to the missing but required field */ | |
.gfield_error:before { | |
font-weight: bold; | |
content: "Sorry, this field is required: "; | |
color: #b94a48; | |
padding-left: 5px; | |
} | |
/* Hide the error message since we're displaying it above */ | |
.validation_error, .validation_message { | |
display:none; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Wow. The power of CSS. I love the way it looks on my form. https://heroes.wapixstaging.com/launch-your-nonprofit-step-two/?fname=Marisa&lname=Porter&email=marisa%40wapix.co