PDA

View Full Version : Script: DD Floating Menu Script problem



fishermansblues
12-23-2005, 11:30 AM
Script URL http://www.dynamicdrive.com/dynamicindex1/staticmenu.htm

I am trying to add this functionality to my web page. I have placed the code immediately before the </body> tag as recommended, and instead of a menu, just inserted some regular text. The text does not float and appears right at the end of my page.
I suspect the problem is some conflict with the other div elements on the page but I am not sure exactly where to look. Briefly there are 5 divs, top, left, right, centre and footer. The css for these is as follows:
#top {
margin: 0px;
height: 75px;
text-align:left;
}
#left {
position: absolute;
left: 10px;
top: 100px;
width: 200px;
}
#right {
position: absolute;
right: 10px;
top: 90px;
width: 200px;
padding-left:2px;
}
#centre {
margin-top: 0;
margin-left: 220px;
margin-right: 220px;
}
#footer {
clear: both;
padding: 5px;
margin-top: 10px;
text-align:center;
font-size:x-small;
}

In the HTML for the page they are declared in the sequence Top, Left, Centre, Right and Footer.

Any help on this would be gratefully accepted. :confused:

jscheuer1
12-24-2005, 10:09 AM
Before worrying about that, try removing the DOCTYPE declaration from your page. A quick glance at the script in question suggests that it will not work on a page with almost any DOCTYPE.

fishermansblues
12-27-2005, 11:27 AM
Many thanks, John...that solved the problem :)