Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to set the image border colour?

Status
Not open for further replies.

AndyGroom

Programmer
May 23, 2001
972
GB
Hi,

I have an image on a page and I'm setting the border value around the image to 1. Can I add a stylesheet parameter to dictate the colour of the border?

<img border=1 src='thumb.jpg'>

Thanks,

- Andy
_______________________________
&quot;On a clear disk you can seek forever&quot;
 
yes the css syntax looks like this
Code:
img {
  border: thin solid #000000;
}
this will make a thin black border around your image. you no longer need the border sttribute in the html either

MrBelfry
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top