My problem is styling a server generated validation message, the padding displays the background color before the message is generated, when the padding is removed, the background-color is no longer visible.
I want to have the padding in the code for styling purposes, but without showing any content or background color as this is a validation message, here is the code as follows:
<div class="validate">@Html.ValidationMessageFor(m => m.Email)</div>
css:
.validate {color:#ecf0f1;font-size:.9em;background-color:#e74c3c;padding:10px;}
Before validation:

What occurs after the validation shows up:

What I want before validation:
