If I use doctype the settings of the submenus in javascript dropdown menu get lost.
Return to Recent Questions
Q:
I am using javascript dropdown menu - Deluxe Menu 2.0 and have some problem with the doctype
declaration.
Is there any need to classify a certain doctype in order to get the menu working correctly?
If we use the XML declaration (like this:
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">)
the padding and margin settings of the submenus get lost.
Are there any known solution to fix this?
A:
Yes, it happens if you don't specify units in "px" for some dropdown menu parameters.
Please, try to write so:
var itemPadding="2px";
Return to Recent Questions
|