Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:44
DOCTYPE affects menu paddings
Poster: perldev
Dated: Wednesday May 11 2005 - 21:59:28 BST
Example 1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<html lang="en">
Example 2:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US">
In example 2, the menu padding doesn't work; but example 1 does. The only difference between 1 and 2 is the DOCTYPE.
How to fix the padding issue of example 2? Thanks in advance.
Poster: Ruth
Dated: Thursday May 12 2005 - 3:39:31 BST
Hi,
I'm assuming Netscape and Firefox since my IE looks the same in both. For some reason, and I don't know what that is, if you put px in your menu style code Netscape will start showing the padding.
Code:
padding="5px 10px 5px 10px";
The same is true in Firefox 1.0.2.
Ruth
Poster: perldev
Dated: Thursday May 12 2005 - 13:02:43 BST
Ruth, you are right. When appending px, it works perfect. Thanks for your help!
Re: DOCTYPE
Poster: guythomas
Dated: Thursday February 19 2009 - 13:19:49 GMT
I find that specifing
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
Has an affect on the springout menus. They persist and don't withdraw gracefully. I had not noticed a problem until I tried in IE 8.
Question:
Are there any known IE 8 incompatibilities?
Guy