Positing drop down menu in different browsers

Please note that official support for this menu version has now ceased. There are still plenty of users, though, and the forum is still running. Some of our long-time users may be able to help you out.
Post Reply
ZildjianKX
Beginner
Beginner
Posts: 6
Joined: Thu Jul 04, 2002 12:10 am

Positing drop down menu in different browsers

Post by ZildjianKX »

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?
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

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: Select all

<BODY  topmargin="0" leftmargin="0" marginheight="0" marginwidth="0">
-- Andy[/b]
ZildjianKX
Beginner
Beginner
Posts: 6
Joined: Thu Jul 04, 2002 12:10 am

Post by ZildjianKX »

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
ZildjianKX
Beginner
Beginner
Posts: 6
Joined: Thu Jul 04, 2002 12:10 am

Post by ZildjianKX »

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
68impala
Beginner
Beginner
Posts: 1
Joined: Mon Jul 22, 2002 9:20 pm

Post by 68impala »

hey ZildjianKX,

add this to your css block or include:

Code: Select all

body,div,span {margin:0px; padding:0px;}
or add this to your body tag:

Code: Select all

<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.
Post Reply