473,320 Members | 1,694 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Validator color and css-stylesheets - a solution

For those interested:

I solved a problem I had using a cssclass with validators. The textcolor
of the errormessage didn't want to follow the css.

Two solutions:
* when the validator is defined in the aspx/ascx, use a ForeColor=" "
attribute.
* when programmatically adding a validator, I couldn't set the
ForeColor property to some "ignore" value ("Transparent" or
FromArgb(0,0,0,0) did not work). Finally I solved this by adding
the "!important" specifier in the css-file ("color: red !important;")

The basic problem is that the Forecolor attribute of the validator
generates a "style" attribute in html. This is specified "closer"
to the html-element than some css-setting, so overrides this.

If anyone has a better solution for the second case (or the first),
feel free to reply!
--
Hans Kesting
Nov 19 '05 #1
0 966

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

24
by: Nick Kew | last post by:
There's a new beta of the W3C Markup Validation Service now live at <URL:http://validator.w3.org:8001/> Probably the most important change is verbose output, including attempts to explain the...
195
by: Torbjørn Pettersen | last post by:
As you might have noticed I'm trying to clean up my web site's HTML code. The way I do it is simply more or less redoing to complete site, testing it on a web server I have set up on my local...
4
by: Mary Ellen Curtin | last post by:
I made a web page (wheee!) and decided to test it (by upload) in the W3C Validator http://validator.w3.org/ I had some errors, but as Bilbo said of Gandalf, "The explanation did not explain." ...
2
by: DU | last post by:
Hello fellow stylers, I don't understand the error report given by the W3C CSS validator: "Line: -1 unrecognized media screen, tv " I checked carefully and can't figure this one out. I...
6
by: Matt Bostock | last post by:
Hi, When I validate this page: http://www.drfunkenstein.net/using http://jigsaw.w3.org/css-validator/, I get the following results: ...
13
by: Niki Kovacs | last post by:
Hi, I'm an Austrian writer living in Montpezat (South France). I just installed a local W3C validator on my machine (Slackware 10.1, local Apache server). It's accessible as...
8
by: Rhino | last post by:
I am getting an error from the CSS validator that I don't understand. Here is the relevant fragment of my CSS: BODY { size: 8.5in 11in; color : #000000; background-color : #ffffff;...
40
by: VK | last post by:
Hi, After the response on my request from W3C I'm still unclear about Tidy vs. Validator discrepansies. That started with <IFRAME> issue, but there is more as I know. Anyway, this very basic...
12
by: Vadim | last post by:
Hi! I am looking for HTML validator with the following restrictions: 1. Web server is the localhost (page should be validated locally). 2. The page is dynamic (generated by PHP with client side...
5
by: Bob Cox | last post by:
I am getting the error: Invalid number : color fuchsia is not a color value : fuchsia from the W3C CSS validator, yet I am sure the same CSS validated ok previously. The offending CSS is: ...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.