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

    But when I change my Doctype, all the web navigation menu 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 web navigation menu 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",
"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 menu | bootstrap 4 templates | video background | bootstrap button styles | bootstrap image slider