Forum Moderators: not2easy
(in external stylesheet)
.bormain {
border-left: 3px solid #333366;
border-right: 3px solid #333366;
}
(in document)
<table class="bormain" cellpadding="5" cellspacing="0" width="750">
And the second problem I have deals with borders on images, take a look at the code here.
.borimg {
border: 2px solid #333366;
}
<img src="pic.gif" class="borimg" width="140" height="140" space="2" hspace="2">
This works fine in IE and Opera, but in Netscape it doesn't put the border around the image at all; instead it puts a little tiny box to the right of it.
So what is the trick to getting borders to work in Netscape?
Now, Netscape 4's understanding of borders is very limited. It understands only the following syntax:
border: 1px solid #000;
Forget about border-left etc. It's either a solid border around the whole thing, or nothing. Also, it understands nothing but "solid" borders. Even if you try something else, solid it will be.
Try as below:
[in HTML]
<link rel="stylesheet" type="text/javascript" href="nn4.jss">
[in "nn4.jss"]
with (document) {
with (classes.bormain.TABLE) {
borderColor = "#333366;
borderStyle = "solid";
borderWidths("0px","3px","0px","3px");
}
}
Sorry for the rant, but I finally stopped supporting Netscape 4 this month -- I just hide the css from the browser -- and I am so so so happy.