This:
Code:
document.all.fadeshow1.style.marginLeft = "20px";
is not a good way to set the margin. It only works in a couple of browsers, and where you have it, it's too soon to even do it in those.
Also, this is redundant:
HTML Code:
<link href="main.css" rel="stylesheet" type="text/css" />
<link href="main.css" rel="stylesheet" type="text/css" />
Get rid of one of them.
The preferred way to set style is in the stylesheet. So, in main.css, add this at the bottom:
Code:
#fadeshow1 {
margin-left: 20px;
}
Bookmarks