-
Script: DD Floating Menu Script problem
Script URL http://www.dynamicdrive.com/dynamici...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.
-
-
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.
-
-
Many thanks, John...that solved the problem
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks