Click to See Complete Forum and Search --> : Validating code
wooze
10-08-2003, 08:58 PM
Hi - I have a site which i have nearly completed. It works fine until i validate it either as HTML, or XHTML.
The problem being that validated page will not display all of my CSS correctly.
Any ideas?
The site can be found at
http://www.radar-id.com/site/
and the validated page is
http://www.radar-id.com/site/validate.html
The CSS code is at
http://www.radar-id.com/site/radar.css
Thanks in advance
Try validating you CSS, too. In your body selector, you have background color: when you should have background-color:
wooze
10-08-2003, 09:08 PM
somehow missed that vital step, cheers. Will let you know how i go.
wooze
10-08-2003, 09:21 PM
That seems to have fixed the problems. It seems that the CSS i have used for the scroll bar properties don't exist...will see what is valid now.
Thanks for the help.
Correct, the scrollbar crap is IE proprietary code, and can't be found in either the CSS1 or CSS2 specs.
wooze
10-08-2003, 09:33 PM
Once validated the page doesnt seem to listen to my overflow: hidden command either, which is pretty important for this page layout (using text as a background feature) So what is best to do, have the page looking the way you want it, or having it validated?
You can generally do both... What exactly seems to be the problem?
wooze
10-08-2003, 09:48 PM
Not a great problem really, but when i validate the page the following CSS no longer works;
The scroll bar has no style - but if this isnt valid CSS i can live without it but what i would like the page to do is listen to the overflow: hidden style which is applied to the background text.
Want a tip? Use a background image, instead of text like that. A couple of reasons:
1: The background doesn't show up in Mozilla. (Due to the -1 z-index)
2: Not sure about this one, but the google bot might take that must repetative text as an attempt to spam the bot... Just a guess, but I wouldn't risk it until I looked into it.
wooze
10-08-2003, 10:33 PM
yeah, i have been thinking that. have just been playing around with overlapping text, but think you might be right :p