Thread: doctype advise!
View Single Post
Old 2006-07-13, 01:45 PM   #10
MrYum
Arghhhh...submit yer sites ya ruddy swabs!
 
MrYum's Avatar
 
Join Date: May 2004
Location: Sunny Florida!
Posts: 5,108
Send a message via ICQ to MrYum
Quote:
Originally Posted by Toby
Agreed. Also, I rechecked my standard DOCTYPE statement and it's not quite the same as the shortened version of what you were using.
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
HTML 4.01 instead of XHTML 1.0

A good way to locate problems like this one is to run the page past a validator. Such as http://validator.w3.org/
Just checked...that's the same doctype code I use

Also, great advice on running a validator...helps a ton to pick up errors that cause these kinds of problems. I'd bet the Major is right on the mark about the lack of a '#' in front of the hex color codes is causing your problem.

On a side note...curious, why do you end some of your html tags with a ' />'? Obviously, the '>' is necessary, but I'm seeing quite a few sites using the ' /'...which I don't believe is needed
MrYum is offline   Reply With Quote