PDA

View Full Version : How to place the HVmenu for most browsers?



bernd
10-06-2005, 08:33 PM
hi,

I want to place the menu in the middle of my website.
But if i look to it with other browsers like mozilla, firefox, etc. it moves

How could I place the menu in that way, that it stays exactly where it
should be?

I found that description in the config.html

TargetLoc
Text string- Enables relative positioning of the menu.
1- In the HTML-file where the menu shows you need a named div:
<div id='MenuPos' style='position:relative'></div>
2- Set TargetLoc to 'MenuPos'
3 - Set MenuCentered to 'left', MenuVerticalCentered to 'top' and StartTop and StartLeft to 0
4 - StartTop, StartLeft and the Menu center variables can still be used to get an offset from the <div>.

Remarks: the different ways browsers interpret the pageX and pageY offset makes this feature difficult. I got the best results by putting the div inside a table, give the div the same dimensions as the first level menu, put an transparent image inside the div with again the same dimensions as the first level menu
<table>
<tr><td>
<div id='MenuPos' style='position:relative; width:102; height:102;'><img src='transparent.gif' width='102' height='102'></div>
</td></tr>
</table>
But what does it means?

Can somebody give me an detailed example how this description
works..I don't get it!

Thanks for help

Bernd