Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

Back To Start Of Archive
Taken From The Forum: Archived Topics for the old Version 3.0 JavaScript Menu
Forum Topic: Click to view post
Last Updated: Wednesday July 18 2012 - 06:07:31

Positing drop down menu in different browsers


Poster: ZildjianKX
Dated: Thursday July 18 2002 - 2:17:26 BST

Even when I have the menu positioned to a certain allignment, it still is different in each browser, especially in Netscape 4.7 for mac. Is there a way to position the drop down menu so it stays in the absolute same place no matter which browser you use?


Poster: Andy
Dated: Thursday July 18 2002 - 9:30:27 BST

This could be to do with browser margins.

The developers of the browsers decided that it would be a good idea to have different margin sizes so that anyone positioning objects in the browser using absolute pixel positioning would appear different.

The best way around this is to set the margins to zero.

This should do the trick

Code:
<BODY  topmargin="0" leftmargin="0" marginheight="0" marginwidth="0">


-- Andy[/b]


Poster: ZildjianKX
Dated: Thursday July 18 2002 - 21:48:38 BST

Thanks for the reply :) Changing the margins seems to work in all browsers except Netscape 4.7... would you happen to know how to get it to work in Netscape? Tx


Poster: ZildjianKX
Dated: Thursday July 18 2002 - 22:25:54 BST

Actually, my real problem is that when you set the margins in netscape to zero, they don't match the zero MSIE margins... and the Netscape 4.7 PC and Mac versions don't match... help! LoL


Poster: 68impala
Dated: Monday July 22 2002 - 21:25:57 BST

hey ZildjianKX,

add this to your css block or include:

Code:
body,div,span {margin:0px; padding:0px;}


or add this to your body tag:

Code:
<body leftmargin="0" topmargin="0" rightmargin="0" bottommargin="0" marginwidth="0" marginheight="0">


if you are going to support all browsers do both I guess.