开发者

positioning span?

开发者 https://www.devze.com 2022-12-17 06:24 出处:网络
take开发者_Go百科 a look at this validation demo: http://jquery.bassistance.de/validate/demo/ the error messages are placed on the right side to the fields.

take开发者_Go百科 a look at this validation demo:

http://jquery.bassistance.de/validate/demo/

the error messages are placed on the right side to the fields.

i have wrapped span on my messages and want to place them to the left side of the input fields. how do i do that with css?


if you want, you can hack the code on jquery.validate.js and look for this line:

label.insertAfter(element);

and change it to:

label.insertBefore(element);


You just want to move them with CSS (that is, whithout changing where those elements occur in the HTML)? One way would be: position: relative; left: -120px; top:-20px (or whatever values you find put them where you want.

0

精彩评论

暂无评论...
验证码 换一张
取 消