You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Daniel Jue <te...@gmail.com> on 2007/08/01 23:01:28 UTC

T5 CSS positioning of errors.

Not sure why this is here in the default CSS:

div.t-error li {
	margin-left: -20px;
}

For me (in Firefox) it makes my form validation errors appear outside
the pretty red box they come in.

I overrode it in my own CSS, to be

div.t-error li {
	margin-left: 20px;
}

Now my disc (the solid bullet) and the error are nicely inside the box.

Inspecting the li in FireBug, it seems the only style affecting that
li were from default.css, not my own.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: T5 CSS positioning of errors.

Posted by Evan Rawson - Work <er...@americanadtrader.com>.
yeah i noticed that as well.

i used this css to fix the problem
/* Validation Decoration Overide */
div.t-error{
 margin:6px 0 0 0;
 padding:0px;
 background-color:#FFFFFF;}
div.t-error ul{
 margin:0px;
 padding:1px 0 2px 20px;}
div.t-error li{
 margin:0px;
 padding:1px 0 1px 0;}




this turns off the X marks
=================
img.t-error-icon{
 border:0;
 display: none;}


~evan


----- Original Message ----- 
From: "Daniel Jue" <te...@gmail.com>
To: "Tapestry users" <us...@tapestry.apache.org>
Sent: Wednesday, August 01, 2007 5:01 PM
Subject: T5 CSS positioning of errors.


> Not sure why this is here in the default CSS:
> 
> div.t-error li {
> margin-left: -20px;
> }
> 
> For me (in Firefox) it makes my form validation errors appear outside
> the pretty red box they come in.
> 
> I overrode it in my own CSS, to be
> 
> div.t-error li {
> margin-left: 20px;
> }
> 
> Now my disc (the solid bullet) and the error are nicely inside the box.
> 
> Inspecting the li in FireBug, it seems the only style affecting that
> li were from default.css, not my own.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org