Results 1 to 3 of 3

Thread: glossymenu accordian menu

  1. #1
    Join Date
    Aug 2008
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default glossymenu accordian menu

    1) Script Title: DD Accordian Menu

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...enu-glossy.htm

    3) Describe problem: Keeps pushing the page contents down on expand

    Hi

    Is there a code to stop the menu from pushing all the content on the page downwards on opening the expand button please?

    If so please may I have it? I am new to javascript and like using ur stuff its great but its pushing the content downwards on opening the links

    sincerely
    Kated

  2. #2
    Join Date
    Jul 2008
    Location
    Derbyshire, UK
    Posts
    3,033
    Thanks
    25
    Thanked 599 Times in 575 Posts
    Blog Entries
    40

    Default

    Try positioning .glossymenu absolutely to take it out if the normal flow of the document http://www.w3schools.com/cssref/pr_class_position.asp
    Focus on Function Web Design
    Fast Edit (A flat file, PHP web page editor & CMS. Small, FREE, no database!) | Fast Edit BE (Snippet Manager) (Web content editor for multiple editable regions!) | Fast Apps

  3. #3
    Join Date
    Sep 2007
    Location
    The Netherlands
    Posts
    1,859
    Thanks
    49
    Thanked 260 Times in 252 Posts
    Blog Entries
    56

    Default

    To implement Beverleyh's suggestion, replace
    Code:
    <div class="glossymenu">
    with
    Code:
    <div class="glossymenu" id="glossymenu" style="position: absolute">
    then if you want to locate the rest of the page beneath the menu, put this immediately beneath the closing tag of the div where the menu is written:
    Code:
    <div id="beneath_glossymenu" style="width: 100%; ">&nbsp;</div>
    <script>
    document.getElementById('beneath_glossymenu').style.height=document.getElementById('glossymenu').clientHeight+document.getElementById('glossymenu').offsetTop+'px'
    </script>

Similar Threads

  1. DD Glossymenu on iPhone
    By jdadwilson in forum Dynamic Drive scripts help
    Replies: 2
    Last Post: 09-11-2015, 10:19 AM
  2. ddAccordion Glossymenu Script
    By ETpro in forum Dynamic Drive scripts help
    Replies: 2
    Last Post: 05-06-2011, 05:47 PM
  3. Replies: 0
    Last Post: 12-23-2009, 08:35 PM
  4. accordion glossymenu toggleclass does not work
    By mvandek2 in forum Dynamic Drive scripts help
    Replies: 1
    Last Post: 08-04-2009, 08:14 PM
  5. DDAccordion glossymenu not initializing properly
    By traq in forum Dynamic Drive scripts help
    Replies: 1
    Last Post: 03-03-2009, 01:28 AM

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
  •