[html-formfu] errors behind the corresponding input

Sven Eppler sven at sveneppler.de
Fri Jan 29 14:49:14 GMT 2010


Hi Wolfang,

this basicly solves my problem. But it moves the message to the complete
right and let it grow from there towards my input elements.

Which works on bigger error messages. But smaller ones look "lost" at
the right side of the screen.

But thanks for the idea anyway. :)

Bye,
Sven

Am Freitag, den 29.01.2010, 15:27 +0100 schrieb Wolfgang Kinkeldei:
> 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
> 
> _______________________________________________
> HTML-FormFu mailing list
> HTML-FormFu at lists.scsys.co.uk
> http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu




More information about the HTML-FormFu mailing list