(c) 2007, DHTML-Menu.com
 
   
   
  Support
  Recent Questions
  Write To Support
 

    But when I change my Doctype, all the vertical drop down menus 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:

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

But when I change it, all the vertical drop down menus 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

   
Copyright (c) 2012, DHTML-Menu.com
Home  |  Product Info  |  Samples  |  Download  |  Purchase  |  FAQ  |  Site Map  |  Write Us
All rights reserved. bootstrap template | bootstrap parallax | free icons | CSS Slider | css menu