Results 1 to 5 of 5

Thread: Anylink Css Menu Submenu Column scrolls away from fixed menu

  1. #1
    Join Date
    Jul 2010
    Posts
    5
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default Anylink Css Menu Submenu Column scrolls away from fixed menu

    Script: AnyLink CSS Menu v2.3
    http://www.dynamicdrive.com/dynamici...anylinkcss.htm

    Using Anyink css menu, and when I add the menu to a fixed div, the submenu columns scroll with the page. Need their position fixed to the menu bar not relative to the page. I have tried all sorts of amendments within the CSS but nothing keeps it tied to the parent!

    Because it is on an admin page I can't give a link but here's a link to my CSS http://www.stratusinternational.com/...inkcssmenu.css

    I build menu content via a MySQL query using asp.

    The .js file is original & untouched (as was supplied with the download).

    Any help would be greatly appreciated.

    For an example I would have to build a new set of pages, so hoping I don't have to. The client would not appreciate me giving access to his office back-end.
    Last edited by GlenStobbs; 06-11-2015 at 06:20 PM. Reason: BeverleyH comments

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

    Default

    Is this question regarding a Dynamic Drive script? If so, please following the correct posting format here: http://www.dynamicdrive.com/forums/showthread.php?t=6 The thread can be moved to the appropriate forum if this is the case, and a link to the demo page will help us review installation instructions, and original code, etc.

    If this is a script from another source, please post a link to that source site and documentation - Again this is so we can check installation instructions, and original code, etc.

    We'll also need a live demo to illustrate problem so please either setup a public page on your own server or use one of the services here:

    - http://jsbin.com/
    - https://jsfiddle.net/
    - http://codepen.io/pen/

    live edits = more convenient = faster replies
    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
    Jul 2010
    Posts
    5
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    Script: DD AnyLink CSS Menu v2.3
    http://www.dynamicdrive.com/dynamici...anylinkcss.htm

    I have now set up an example page here where you can see the problem.

  4. #4
    Join Date
    Dec 2008
    Location
    Portsmouth, UK
    Posts
    1,891
    Thanks
    2
    Thanked 441 Times in 435 Posts

    Default

    css

    Code:
    .anylinkshadow{ /*CSS for shadow. Keep this as is */
    position: fixed;
    left: 0;
    top: 0;
    z-index: 99; /*zIndex for shadow*/
    background: black;
    visibility: hidden;
    }
    Code:
    <!--1st anchor link and menu -->
    <div style="position:fixed;left:0px;top:100px;" >
    <p><a href="http://www.dynamicdrive.com" class="anchorclass" rel="submenu1">Default Example</a></p>
    </div>
    
    <div id="submenu1" class="anylinkcss" style="position:fixed;">
    <ul>
    <li><a href="http://www.dynamicdrive.com/">Dynamic Drive</a></li>
    <li><a href="http://www.cssdrive.com">CSS Drive</a></li>
    <li><a href="http://www.javascriptkit.com">JavaScript Kit</a></li>
    <li><a href="http://www.codingforums.com">Coding Forums</a></li>
    <li><a href="http://www.javascriptkit.com/jsref/">JavaScript Reference</a></li>
    </ul>
    </div>
    Vic
    God Loves You and will never love you less.
    http://www.vicsjavascripts.org/Home.htm
    If my post has been useful please donate to http://www.operationsmile.org.uk/

  5. The Following User Says Thank You to vwphillips For This Useful Post:

    GlenStobbs (06-12-2015)

  6. #5
    Join Date
    Jul 2010
    Posts
    5
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    Vic, you star!

    Why didn't I think of that!

Similar Threads

  1. AnyLink JS Drop Down Menu v2.3 column issues
    By gkornbluth in forum Dynamic Drive scripts help
    Replies: 0
    Last Post: 11-12-2013, 05:33 PM
  2. Replies: 8
    Last Post: 04-16-2013, 07:25 PM
  3. div fixed pos x but scrolls y
    By wwfc in forum JavaScript
    Replies: 7
    Last Post: 12-20-2011, 08:25 PM
  4. Anylink CSS Menu: Submenu Positioning
    By dmwhipp in forum Dynamic Drive scripts help
    Replies: 2
    Last Post: 04-23-2010, 01:15 PM
  5. Replies: 5
    Last Post: 12-21-2006, 03:33 PM

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
  •