Forum Moderators: not2easy
img
{
border: 0;
}
I also have this:
body
{
margin: 0px;
padding: 0px;
color: #000000;
background-color: #FFFFFF;
}
These don't work in NS 4.7 even though I think they are supported. Do i need to add something for it to look better in the old browser. My font styles work correctly.
[added] only images that are links are affected with borders [/added]
-Russell
I know about the inheritance. That's why it's more efficient for me to use the border="0" inside a link because the <img> could be anywhere, and I can't rely on NN4 to make an educated guess. I'd have to come up with all kinds of combinations for the cascade otherwise.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Test</title>
<STYLE type="text/css">
<!--
img { border-style:none; border-width:0px;}
-->
</STYLE>
</head>
<body>
<a href="http://www.google.com/"><img src="http://www.google.com/images/logo.gif" width="276" height="110" alt=""></a>
</body>
</html>
Don't ask me why I used google logo. It's just that it is probably in everyone's cache here anyway. Also note that the <img> is not nested in any way. It just doesn't work.
If you do your homework, zero in on the code snippet that's acting up and what the issue is, and still can't make it work after honest effort an understanding, then it's ok to post a LITTLE BIT of code - the very little bit you zeroed in on as being where the issue resides.
But it's still better to explain it in ordinary language as much as is possible. It's much more useful to other members AND it's more likely to draw helpful responses if others don't need to wade through a page trying to understand the logic behind a big chunk of code.
I also have a confession to make - I don't know what I was looking at his morning, but tonight I cannot get any of the CSS for link borders to work in Netscape 4. I've tried declarations for img {}, for a img{}, and creating a special class for images used in an anchor. I've tried "border" and "border-style".
The best I can come up with so far is to declare a border of 0 and a border-color that matches the background-color. But the border's still there, only it's harder to notice because of the color. If the space used for the border is an issue, this is still not an acceptable solution.