Results 1 to 3 of 3

Thread: Script: DD Floating Menu Script problem

  1. #1
    Join Date
    Dec 2005
    Location
    Thessaloniki, Greece
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default 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.

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    29,069
    Thanks
    44
    Thanked 3,216 Times in 3,178 Posts
    Blog Entries
    12

    Default

    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.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Dec 2005
    Location
    Thessaloniki, Greece
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Thumbs up

    Many thanks, John...that solved the problem

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •