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: Saturday July 14 2012 - 06:07:57
mozilla vs IE and JS and recognizing margins
Poster: azaro
Dated: Tuesday November 11 2003 - 15:27:46 GMT
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:
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;
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;