Dom 
Member 
 
Registered: 13th Sep 03
 
User status: Offline 
 
 | 
 
howdies all, 
 
im putting a dynamic HTML menu on my newly designed website and the menu is lined up using the properties -  top and left, so top is the number of pixels from the top of the browser screen and left is the number of pixels from the left side of the browser. Now my website uses a graphical background that is aligned centre in the viewers browser and the same goes for the menu box, and i want the DHTML menu to align up to the menu box. However, because of people using different resolutions and browsers and other factors, the menu doesnt realise this and doesnt take it into account, so the menu ends up being positioned wrongy and not following the menu box. 
 
So basically, i need a way to find the position, in terms of top and left within the menu box. Ive tried putting a <layer> tag in the menu box (a table basically) and getting the top property but it isnt happening   nor is using other components, such as images, textboxes etc 
 
So has anyone got any ideas? the only other option i have is to scrap the DHTML menu and design something myself, but thats the last option. 
 
anyways cheers all   
Dom  
 | 
Tim 
Site Administrator
 
Registered: 21st Apr 00
 
User status: Offline 
 
 | 
 
Don't set positions based on browser. Set them relative to the object on the screen and write some get coordinate functions to return this based on the current screen... lots of examples on dhtmlcentral.com
 | 
Dom 
Member 
 
Registered: 13th Sep 03
 
User status: Offline 
 
 | 
 
cheers mate   
thats what i was trying to do, set the menu to a table on the webpage, so when the table moves (due to screen resolutions, browser window resizing etc) the menu moves with it   but cheers for the link will have a look at the site, 
Dom  
 | 
ed 
Member 
 
Registered: 10th Sep 03
 
User status: Offline 
 
 | 
 
Use %'s instead?
 | 
Dom 
Member 
 
Registered: 13th Sep 03
 
User status: Offline 
 
 | 
 
^ nah mate, its physical placement of the menu on the screen   But ive gone with another menu system now. Not as fancy, but i can place it within a table and is pretty fast to load etc   
cheers anyways all  
 | 
PaulW 
Member 
 
Registered: 26th Jan 03
 Location: Atherton, Greater Manchester 
User status: Offline 
 
 | 
 
menu i've got on the school site is nowt like that   
 
its complete cak hehe 
 
but its what they want tho so canae really do owt fancy  
 |