Validation Control Color

C

Chris

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.
 
B

bruce barker

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)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top