mozilla vs IE and JS and recognizing margins

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
azaro
Beginner
Beginner
Posts: 7
Joined: Mon Nov 10, 2003 8:08 pm

mozilla vs IE and JS and recognizing margins

Post by azaro »

Here is an example page:
http://www.azaro.ca/photos/travelphotos.html

In Mozilla, the "options" is shifted to the left, since it apparantly counted the offset from the edge of the screen and not from the 40px margin specified in the CSS. Mozilla and IE show the margins properly, so it's the javascript that doesn't read the margins in Mozilla.

Do I need to change my stylesheet, or put the info in the <body>? Somebody else must have come across this issue... I did a search but there's no clear answer.

Here's my stylesheet:


thanks.

Code: Select all

A:LINK {
  text-decoration: none; color: #ffffff
}
A:VISITED {
  text-decoration: none; color: #ffffff
}
A:HOVER {
  text-decoration: none; color: #BCFFFF
}
A:ACTIVE {
  text-decoration: none; color: #ffffff
}

 BODY {
	margin-left: 40px;
	margin-right: 40px;
	margin-top: 0px;
	margin-bottom: 0px;
	background-color: #eaeaea;
	
Post Reply