Results 1 to 3 of 3

Thread: Dropdown HTML Control : Positioning Problem

  1. #1
    Join Date
    Jul 2005
    Location
    UK
    Posts
    159
    Thanks
    15
    Thanked 0 Times in 0 Posts

    Unhappy Dropdown HTML Control : Positioning Problem

    1) Script Title:
    Dropdown HTML control

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

    3) Describe problem:
    Ok, I know that it is advised we don't post questions on multiple scripts due to certain interference, however, I think I have a CSS problem on my hands. My drop down menu is showing up, and working correctly, but the positioning is off. It is centering the text and putting it in the middle of the page instead of dropping down from the navigation bar. Please help!

    You can see my code at www.zumatile.com

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Try moving the drop down DIV itself (plus the activating script call) so it's outisde any container tags other than the <body> itself, such as directly above the </body> tag:

    Code:
    <div id="menu_child" style="position: absolute; visibility: hidden;">
    		<a class="menu" href="glass.htm">Glass</a>
    
    		<a class="menu" href="metal.htm">Metal</a>
    		<a class="menu" href="stone.htm">Stone</a>
    		<a class="menu" href="medal.htm">Medallions</a>
    		<a class="menu" href="rails.htm">Rails</a>
    		<a class="menu" href="liner.htm">Liners</a>
    </div>
    		<script type="text/javascript">
    at_attach("menu_parent", "menu_child", "hover", "y", "pointer");
    
    </script>
    
    </body>

  3. #3
    Join Date
    Jul 2005
    Location
    UK
    Posts
    159
    Thanks
    15
    Thanked 0 Times in 0 Posts

    Default

    beautiful baby, works like a charm.

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
  •