1
I bought a CSS and am trying to apply on my site, the Cass I bought has a validation scheme in the form where it circles the form with a red line and puts an X inside the text box. I’ll put an image here to be easy to understand, this is the template I bought.
The difference of HTML is the inclusion of a ::before and a class (which I think q is the one that puts the before, but I’m not sure how it works, I’m learning)
The form component is in a , follows the example of the first component already with the validation of an active error:
<div class="form-group has-error">
::before
<label class="sr-only" for="Nome">Nome</label>
<input class="input-validation-error form-control input-lg required text-box single-line" data-val="true" data-val-required="O campo Nome é obrigatório." id="name" name="Nome" placeholder="Name" type="text" value=""> <ul class="parsley-errors-list" id="parsley-id-1125"></ul>
</div>
O ::before is the "X" I want to put, it has the following css:
.contact-form .has-error:before {
content: "\f00d";
color: #d2322d;
}
Because in my project he has a square and in the purchased design is an X?
That sort of thing (
content: "\f00d";
) usually comes from source files. You’ve included all the fonts that came in the template in your project?– Caio Felipe Pereira
Make sure you are getting an error on the console. Also post your MVC Bundleconfig.
– Randrade
before is working correctly, the problem is the source. before adds content from your div.
– Laerte