[Home]Image border color

HomePage | RecentChanges | Preferences | Newbie Help

If you want an image to have a border, you might also want to change the border's color. Here's a few ways to do it:
For Netscape (4 and 6), you can change the font color of the image. For example:

 <font color="green"><img src="an_image.gif" alt="sample image" border="3"></font>

...will create a green, 3-pixel border.

For a solution that will work in CSS1-conforming browsers, you can use the style attribute or a style sheet to change the border color:

 <img src="an_image.gif" alt="sample image" style="border: green solid 3px;">

or

 <!-- (in the <head>) -->
 <style type="text/css">
 img.clams { border: green solid 3px; }
 </style>

 <!-- ...later, in the <body> -->
 <img src="an_image.gif" alt="sample image" class="clams">

HomePage | RecentChanges | Preferences | Newbie Help
This page is read-only | View other revisions
Last edited October 7, 2001 8:35 am (diff)
Search:

This FAQ is happily hosted by Betadome Digital Media