tags:

views:

174

answers:

0

I'm working a .net mvc project using xVal/nHibernate/jQuery-Validate.

The aspx is marked up as:

<%=Html.Password("Login.Password")%>
<%=Html.ValidationMessage("Login.Password")%>

and rendered looks like:

<input id="Login_Password" class="error" type="text" value="" name="Login.Password"/>metadata={ } 
<label class="error" for="Login_Password" generated="true">The email Password is invalid</label>

using this CSS rule will colorize the error text:

label.error {background:#FFEAEA none repeat scroll 0 0;}

However...it causes a re-wrapping of the line - How do I float the error text so that it sits a little to the top of and right side of the input itself without changing any other line wrapping?

mny thx