Delos Woodruff wrote:
> David,
> 
> Aha! I had posted http://checkitlocal.com/sample.htm but I went ahead
>  and fixed all the little validation errors in the html and I
> switched the doctype to what the site itself uses just to be
> thorough.
> 
> Apparently, the <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 
> Transitional//EN">  does not allow for the hover effect. When I put
>  back in the <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
> Transitional// EN"
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> <html
> xmlns="http://www.w3.org/1999/xhtml";
> xmlns:v="urn:schemas-microsoft-com:vml "
> xmlns:o="urn:schemas-microsoft-com:office:office">, it works like 
> intended. So it looks like my solution is to recode the site into the
>  second doctype and fix all the errors.
> 

No need to recode the site! The incomplete HTML 4 DOCTYPE puts browsers 
into quirks mode. Nothing to do with XHTML code - which is treated as 
HTML by browsers anyway.

Give your pages a complete DOCTYPE, including the DTD declaration, and 
you are good to go:

http://www.w3schools.com/tags/tag_DOCTYPE.asp

FWIW - browser quirks mode differs from standards mode in very few ways, 
with the exception of Internet Explorer. In that browser (alone) all 
versions behave like version 5.5.

Cordially,
David (a different David)
--
______________________________________________________________________
css-discuss [[email protected]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to