|
|
But when I change my Doctype, all the down menus dhtml break on the sites.
Return to Recent Questions
Q:
Could you please just help me - I have been using quirks mode to
create our customer sites and would now like to start using a proper
doctype like:
But when I change it, all the down menus dhtml break on the sites.
A:
Try to specify all units in "px":
var itemPadding="3px";
var itemStyles = [
["fontStyle=normal 11px Lucida Sans
Unicode","fontColor=#FFFFFF,#FFFFFF","itemBackColor=#DE2829,#C62829","itemBorderWidth=0", "itemBorderColor=#FFFFFF,#C21212","itemBorderStyle=solid,solid", "itemBackImage=blank.gif,blank.gif","itemWidth=160px"],
["itemWidth=129px"],
];
var menuStyles = [
["itemSpacing=0", "itemPadding=8px"]
];
Return to Recent Questions
Related:
- Sep 11, 2006 - If I use doctype the settings of the submenus in javascript dropdown menu get lost.
- Sep 23, 2006 - Is it possible that javascript drop down menus doesn't put anything on the local computer?
- Oct 27, 2006 - In IE 6.0 and Firefox 1.5.0.4, the submenus of my dhtml dropdown menu are not visible
- Jan 09, 2007 - I'm still can't understand how to make drop down menus
- Jan 20, 2007 - vertical drop down menus don't work with Internet Explorer.
- Feb 01, 2007 - Can I use this CSS menu to create pulldown menus on a Mac (Mac OSX).
- Feb 02, 2007 - The background images for dhtml drop down menus are missing in the browser
- Feb 12, 2007 - There seems to be a 'glitch' with my transparent drop down menus when I use Firefox.
- Feb 24, 2007 - I built the dhtml pulldown menu and tried it in my site and I see nothing but text
- Feb 27, 2007 - Obviously your dynamic drop down menus are NOT cross browser usable
- March 01, 2007 - When I add a submenu, it appears separated by about 100 px down mouse over menus
|