Positing drop down menu in different browsers
-
- Beginner
- Posts: 6
- Joined: Thu Jul 04, 2002 12:10 am
Positing drop down menu in different browsers
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?
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
-- Andy[/b]
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">
-
- Beginner
- Posts: 6
- Joined: Thu Jul 04, 2002 12:10 am
-
- Beginner
- Posts: 6
- Joined: Thu Jul 04, 2002 12:10 am
hey ZildjianKX,
add this to your css block or include:
or add this to your body tag:
if you are going to support all browsers do both I guess.
add this to your css block or include:
Code: Select all
body,div,span {margin:0px; padding:0px;}
Code: Select all
<body leftmargin="0" topmargin="0" rightmargin="0" bottommargin="0" marginwidth="0" marginheight="0">