Actually that works in Netscape too, but it would look a lot better with the cellspacing set to zero.<table border=1 bordercolor=red>
<tr>
<td>
<img src="asdA" border=0>
</td>
</tr>
</table>
IE only.
Originally posted by andyLee
<img> does not has color border attrib but you can do that by
<table border=1 bordercolor=red>
<tr>
<td>
<img src="asdA" border=0>
</td>
</tr>
</table>
IE only.
I would think the best, and by best I mean most compatible, table way would be:you can do it at least 5 ways with a table. But is it worth to continue to write cluttered code just to support an old and cranky browser? The CSS way doesn't work in NS4x, but they still see the pictures. They just don't get the candy.
<table border="0" cellspacing="0" cellpadding="1" bgcolor="_border_color_"><tr><td>
<table border="0" cellspacing="0" cellpadding="0" bgcolor="_page_bg_color"><tr><td>
<a href="whatever.html"><img src="image.gif" border="0"></a>
</td></tr></table></td></tr></table>
Originally posted by Dusty
I would think the best, and by best I mean most compatible, table way would be:That is a bit excessive. But, I still wouldn't rely on CSS alone, I'd color it with a <font> tag too. There's just no reason not to.Code:<table border="0" cellspacing="0" cellpadding="1" bgcolor="_border_color_"><tr><td> <table border="0" cellspacing="0" cellpadding="0" bgcolor="_page_bg_color"><tr><td> <a href="whatever.html"><img src="image.gif" border="0"></a> </td></tr></table></td></tr></table>
The color (i.e. "black") or its hexadecimal equivalent (i.e. "#000000") are both fine.Can the border colour be one of those colour numbers or a word?
Would the fact that the only thing that is holding true standard support back is version4 browsers do? They don't miss any content. Just decoration.Originally posted by Dusty
That is a bit excessive. But, I still wouldn't rely on CSS alone, I'd color it with a <font> tag too. There's just no reason not to.
They're missing decoration that doesn't have to be missed, that's what I'm on about. If it's just a few more key strokes to make it compatible then why not go that little bit further? If it's anal to go the extra mile, well then, I see nothing wrong with being labeled such.Would the fact that the only thing that is holding true standard support back is version4 browsers do? They don't miss any content. Just decoration.
Point is that one year from now a person that writes a font tag will be seen as anal retarded. I think one should still learn them and table layout too, but going through loops for an image border in NS4 when one is just starting to learn today is plain silly.
No, I guess I haven't considered the blind... if you want you could include a link to a braille stylesheet, I suppose... I don't see what this has at all to do with image border colors... at all, but, um...Have you ever thought about what you may screw up for for example blind users?
Your argument is faulty, for they wont care to download your CSS either, not to mention your 33 character CSS is more of a download than my 29 character <font> tag. Again I say, I don't think the blind will really care and again I ask, what does this have to do with image border colors?That's one of the reasons it's better they and others that don't care don't have to download the code at all.
Your CSS prevents the link's color from changing as well, or did you not realize this?FONT, besides being an ugly tag, results in the link color problem. Meaning no one get's the nice colors. How do you solve that?
No, browsers that don't understand CSS won't download it. Inlining CSS is good for learning purposes, or if one uses a single rule here and there, nothing else. Otherwise an external file is to prefer. Furthermore .css files, just as .js files, get cached so it also preserves bandwidth.Your argument is faulty, for they wont care to download your CSS either,
And if it's 10 images? Or 100? What does your math say then. Besides, wasn't font already discarded because of the link color thing? How many characters are the tables?not to mention your 33 character CSS is more of a download than my 29 character <font> tag.
It has to do with tables used for layout purposes ---- up the way some readers get the text. And to use a table for something as unsignificant as the color of a picture border, all for the benefit of an old version of one browser is bloated.Again I say, I don't think the blind will really care and again I ask, what does this have to do with image border colors?
What link colors? What link? I didn't write a link. cheatpark doesn't want the border to change which your font solution makes it do.Your CSS prevents the link's color from changing as well, or did you not realize this?
Sorry, but font has always been considered to be evil and a bad solution for numerous reasons. You may not believe this, but there are people that have been around since the beginning of the www and never written a font tag. Be happy that it's gone.Calling <font> an ugly tag! <Font> saw you through think and thin from HTML 3.2 to 4.0, and now you're so eager to turn your back on her! For shame!