Results 1 to 5 of 5

Thread: Drop Down Tabs: GlowTabs positioning

  1. #1
    Join Date
    Mar 2008
    Location
    Tallahassee
    Posts
    5
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default Drop Down Tabs: GlowTabs positioning

    1) Script Title: Drop Down Tabs

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

    3) Describe problem: I've got the menu working, but the menu level 1 is located down and to the right of where its supposed to be. I've got the menu html wrapped in a layer that has absolute positioning. Go here and check "Litters" http://applelou.com/indexIII.html. Thank you
    Last edited by ddadmin; 03-20-2008 at 04:18 AM.

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

    Default

    Most of the positioning problems with the drop down menus can be solved by making sure the HTML for the drop down DIVs themselves is outside any container tag on the page other than the BODY. So in your case, try moving all the drop down DIVs to the bottom of your page, just above the "</body>" tag:

    Code:
    	<!-- dropdown menu level 1 -->
    	<div id="dropmenu1_d" class="dropmenudiv_d">
    		<a href="litters/previous.html">Previous Litters</a>
    		<a href="litters/future.html">Future Litters</a>
    	</div>
    
    	<script type="text/javascript">
    	//SYNTAX: tabdropdown.init("menu_id", [integer OR "auto"])
    	tabdropdown.init("glowmenu", 0)
    	</script>
    </body>

  3. The Following User Says Thank You to ddadmin For This Useful Post:

    oaklea (03-20-2008)

  4. #3
    Join Date
    Mar 2008
    Location
    Tallahassee
    Posts
    5
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default

    I moved the first level menu to the bottom just above the close body, as directed. Well, it did some things. It did move the 1 level menu up but it is still to the right. Worse, it brought the footer with it. http://applelou.com/indexIII.html
    I may try and mess with the container layer holding the menu.

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

    Default

    Actually, looking at your source, you didn't move the mentioned HTML to the very bottom of the page, as it's still contained in a </div> tag right above the </body> tag. That is:

    Code:
    	<!-- dropdown menu level 1 -->
    	<div id="dropmenu1_d" class="dropmenudiv_d">
    		<a href="litters/previous.html">Previous Litters</a>
    
    		<a href="litters/future.html">Future Litters</a>
    	</div>
    	<script type="text/javascript">
    	//SYNTAX: tabdropdown.init("menu_id", [integer OR "auto"])
    	tabdropdown.init("glowmenu", 0)
    	</script>
    	</div>
    </body></html>
    The HTML block should be moved below/ outside the tag in red, as that tag is the closing tag of a container.

  6. The Following User Says Thank You to ddadmin For This Useful Post:

    oaklea (03-21-2008)

  7. #5
    Join Date
    Mar 2008
    Location
    Tallahassee
    Posts
    5
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default

    That was it, moving the closing div did it. Thanks for catching my mistake.

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
  •