|
If I use Doctype the settings of the submenus in javascript popup code get lost.
Return to Recent Questions
Q:
Is there any need to classify a certain Doctype in order to get the javascript popup code working correctly?
I'm using javascript popup code - DHTML Menu 2.0 and have some problems with the Doctype
declaration.
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 sub menus get lost.
How I can fix this?
A:
Yes, it happens if you haven't specified units in "px" for some javascript popup code parameters.
Please, try to write so:
var itemPadding="2px";
Return to Recent Questions
Related:
- March 12, 2009 - I have problems with image paths when I create javascript collapse in DHTML Tuner.
- March 14, 2009 - I am having a problem with css styles in the pure css menus.
- March 15, 2009 - I have problems with transitional effects in Firefox in the navigation menu css...
- March 27, 2009 - I can't validate my pages with W3C or WDG validators using collapsing menu...
- Apr 05, 2009 - We have status bar errors that say: "Done, but with errors on page" in simple dhtml menu...
- Apr 07, 2009 - I want to get my text within a single drop down menus item to be on a two lines...
- Apr 13, 2009 - I have some problems with multiple horizontal css menu on my site.
- Apr 20, 2009 - I need the BG color behind items to be flush with the sides of the website navigation bar.
- Apr 24, 2009 - I have an errors on the down menus in css in HTML application with 4 iframes.
- Apr 25, 2009 - How to work with dhtml menu free and submenus in JSP?
- Apr 28, 2009 - There is some bug with your javascript context menu and Page Zoom function in IE7.
|