Doctype again - and color names
May 25, 2004
Questionmark Perception | Web Building

When editing Questionmark Perception's quiz templates, you will quickly find that you must not use the # symbol in hex color names, since Perception recognizes it as a comment.

In redoing a complicated quiz template I added a doctype, as shown below. The colors stopped working. It turns out if the doctype is set to transitional, the # symbol must be used or color names are not recognized. Solution - go back to and all was well again. Maybe it will break in a few years when they upgrade the browsers to IE 12, but I doubt we'll be using this quiz at that time.

<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">

Ads by Google

Posted by ellen at May 25, 2004 12:17 PM


Ads by Google

 RSS   |   Contact Me

Ads by Google

Ads by Google