By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,688 Members | 1,226 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,688 IT Pros & Developers. It's quick & easy.

Validation Control Color

P: n/a
I want to control the color of my validation control with css. There will be
a high visability stylesheet where the background is black and the text is
yellow. When I remove the color it defaults to red (inserting a css style
color:red). Is there any way I can override the color with a cssclass rather
than have to set the color of the validation depending on what stylesheet is
being used? I am guessing this will be simple, but I just can't figure it
out :) Regards, Chris.
May 9 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
not directly. I assume you are using the summary. the style red is just
applied to the div. just apply a class to the div, (you can not
override the style as a style overrides a class), but you can apply new
classes to the messages. if you are using default then set summary
class="errclass" and defines css styles:

<style>
..errclass {background-color:black;}
..errclass ul {color: yellow;}
</style>

-- bruce (sqlwork.com)

Chris wrote:
I want to control the color of my validation control with css. There will be
a high visability stylesheet where the background is black and the text is
yellow. When I remove the color it defaults to red (inserting a css style
color:red). Is there any way I can override the color with a cssclass rather
than have to set the color of the validation depending on what stylesheet is
being used? I am guessing this will be simple, but I just can't figure it
out :) Regards, Chris.

May 9 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.