Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Format CSS in jQuery Validate

I want to view the text response of jQuery validate in a new line, not inline with the input elements.

How I can achieve it?

Code: http://jsfiddle.net/5gVHx/2/

Press NEXT, you will see the validation response line in the same line as the input, i want it in a new line

like image 236
Otto Avatar asked Dec 22 '22 06:12

Otto


1 Answers

Just add display: block; to your label.error selector.

label.error {
    float: none;
    color: red;
    padding-left: .5em;
    vertical-align: top;
    display: block;
}

http://jsfiddle.net/5gVHx/5/

like image 73
Kyle Avatar answered Dec 23 '22 19:12

Kyle