View Full Version : Menu placement
I can't get to place to the top menu to the desired position on Netscape 6 but it fit nicely on IE5.5. NEED HELP.
Use the command like below:
oCMenu.fromtop=105
-In IE5.5, it fit nicely but not in Netscape 6.
Hmm got an example I could take a quick look at?
function Mike(name, mail) {
*****this.name = "Xanth";
*****this.mail = [url:2xve0ew674]belgedin@earthlink.net[/url:2xve0ew674];
*****return this;
}
Sam, is that because they are positioned slightly different between the two browsers? If so, you might need to define placement for each of the two browsers. If that is what you need let me or Xanth know, not a problem.
ShAnE
<BLOCKQUOTE id=quote><font size=1 face="Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
Sam, is that because they are positioned slightly different between the two browsers? If so, you might need to define placement for each of the two browsers. If that is what you need let me or Xanth know, not a problem.
ShAnE
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Arial, Helvetica" size=2 id=quote>
Shane, exactly!, the menu are positioned differently from the two browser and if I have to define the placement for each of the browser as you suggested, how I could do that?.
I've try something like:
oCMenu.level[0].NS4fontColor="white"
oCMenu.level[0].NS4fromtop=90 (I add this line)
but still doesn't work.
The script isn't the problem. If you specify fromtop=90 the menus will always be 90 px from the top. The trouble is that MS and NS browsers set different default margin sizes on a page, making the page content positions relative to the menus inconsistent. Try setting the margins:
<body topmargin="10" leftmargin="10" marginwidth="10" marginheight="10">
and see if that doesn't fix things.
Hey DCage, how are ya?
I didn't know that the margins affected the placement?? Hmm.. I will have to check that on some of my pages. I always used an if statement and two different placements for the different browsers.
//ShAnE
Hey-ho Shane! I'm mostly good, just kinda worn out lately, thanks.
Yeah, the margins make a difference. But again, they don't affect layer placement, just everything else on the screen. Put a plain bordered table on a page -- <table width="100" height="100" border="1"> -- view it with IE and NN/Mozilla (any versions) and you'll see the left/top spacings aren't the same.
<BLOCKQUOTE id=quote><font size=1 face="Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
Hey-ho Shane! I'm mostly good, just kinda worn out lately, thanks.
Yeah, the margins make a difference. But again, they don't affect layer placement, just everything else on the screen. Put a plain bordered table on a page -- <table width="100" height="100" border="1"> -- view it with IE and NN/Mozilla (any versions) and you'll see the left/top spacings aren't the same.
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Arial, Helvetica" size=2 id=quote>
DCage, Yeah you are right. I've place a plain table and then place an image in another table inside it and evrything like miracle, the menu placement works in both of the different browser. Thanks man , you are my savior....horray.
vBulletin® v3.6.7, Copyright ©2000-2009, Jelsoft Enterprises Ltd.