class selector .txterror

A place for discussion about skinning and design. Before posting questions here you should review the documentation about creating skins.

This thread is closed to new posts. You must sign in to post in the forums.
2/8/2010 10:48:37 AM
Gravatar
Total Posts 22

class selector .txterror

Hello,

Im trying to style the .txterror messages appearing in several places.

Rather than simply change the color of the text , I'd like to show the messages inside a nice yellowish box.

Here is my code:

"

.txterror {
background-color:#FFFFCC;
border-style:dashed;
border-width:1px;
color:#FF3300;
margin:10px;
padding:20px;
text-align:center;
vertical-align:middle;
}

"

 

But now in several places appears small empty yellow boxes. For example, in My Account Page I get the following:

<span class="txterror" id="ctl00_mainContent_lblErrorMessage"></span>

Is there a way to avoid these empty spans?

 

any help?

Thanks and Best Regards,

 

Matías Molleja

2/9/2010 6:44:46 AM
Gravatar
Total Posts 18439

Re: class selector .txterror

I solved this in many places yesterday, if you are working from svn trunk you should see improvements.

Basically the problem is that ASP.NET Label control renders a span even if the label has no text. I implemented a custom mojoLabel that inherits from ASP.NET Label but if only renders if the text length is greater than 0. I replaced error labels with this new label in places where I see it.

Best,

Joe

2/9/2010 9:26:49 AM
Gravatar
Total Posts 22

Re: class selector .txterror

Hello Joe,

Thank you!

If you think that it is a good idea I can point you to other places where this problem arises as I work skinning the system, so you can update with the new control.

 

Best regards,

Matías Molleja

2/10/2010 5:49:14 AM
Gravatar
Total Posts 18439

Re: class selector .txterror

Hi Mathias,

I basically added your css to my skin and went looking for them and fixed the ones I found. It is possible I did not find them all so if you see any more just let me know what page you see them on.

Best,

Joe

You must sign in to post in the forums. This thread is closed to new posts.