[html-formfu] errors behind the corresponding input

Wolfgang Kinkeldei wolfgang at kinkeldei.de
Fri Jan 29 14:27:01 GMT 2010


Hi Sven,

Am 29.01.2010 um 14:57 schrieb Sven Eppler:

> Hi There,
> 
> is there an easy way to get the error messages behind the corresponding
> input field instead of before it?

what about using CSS's float property? I am using a css definition like the following lines. Usually this will not hurt unless the error message is way too long. You will probably need more precise css selectors if you are using these class names at other places in your app, too.

/* marks the entire form line with light red background color */
form div.error {
    background-color: #ff9999;
}

/* moves the error message in red letters to the right */
span.error_message {
    float: right;
    color: red;
}


Regards,

Wolfgang Kinkeldei

-- 

' /\_/\ ' .print[split??,"".(($/=q|Cms)+-03467:;<=|)=~tr!C-z -B! -z!)x
'( o.o )' .$/]->[hex]foreach split qr<>,qq+1ecd039ad65b025b8063475b+||
' > ^ < ' .q<!-- Wolfgang Kinkeldei - mailto:wolfgang at kinkeldei.de -->


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2480 bytes
Desc: not available
Url : http://lists.scsys.co.uk/pipermail/html-formfu/attachments/20100129/2f83053b/smime.bin


More information about the HTML-FormFu mailing list