Print Page | Close Window

new dropdown items aren't positioning correctly

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums
Forum Description: Support forum for Web Wiz Forums application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=24050
Printed Date: 07 April 2026 at 2:29am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: new dropdown items aren't positioning correctly
Posted By: odang
Subject: new dropdown items aren't positioning correctly
Date Posted: 03 August 2007 at 6:45am
I have the forum wrapped in centered specific size div tags and all the new submenus that dropout aren't even close to where they should be.
 
Any idea how to fix this?



Replies:
Posted By: Melkor
Date Posted: 03 August 2007 at 8:11am
You can re-position them by altering the numbers after the 'onclick' command


Posted By: Hydrogen
Date Posted: 03 August 2007 at 11:53am
I've found that I had the same trouble.  My DIV is horizontally centered but the pop-up divs end up the same distance away from this DIV as they should be from the edge of the window.

I tried to solved this by adding some Vars to the javascript that get the second to last value on the loop. This is the loop in GetOffsetLeft and Top, that adds up the distance between the child and parent elements all the way to the window element.

However this didn't work in IE for some reason. So instead I placed a div around any particular element that calls the dropdown.  and told the popup to offset 25px from top and 0px from left.

- complicated but it works well now


-------------
Signature?



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net