Welcome to WebmasterWorld Guest from

Forum Moderators: brotherhood of lan & mack

Message Too Old, No Replies

Different Border Colour

12:07 pm on Jul 2, 2004 (gmt 0)

Junior Member

10+ Year Member

joined:Jan 28, 2004
votes: 0


I have the below code on a page with a black background, and was wondering what I need to add to it to change the border colour?

<img src="../KOTOR.jpg" width="250" height="187" border="10" align="left" />


4:18 pm on July 2, 2004 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:June 29, 2003
votes: 0

You might consider adding some CSS.
<p style="text-align: left;">
<img src="../KOTOR.jpg" style="width: 250px; height: 187; border: .2em solid #00f;" />

Add this within <head> to affect every image on the page.
img {
border: .2em solid #00f;

2:20 pm on July 9, 2004 (gmt 0)

Junior Member

10+ Year Member

joined:Mar 2, 2004
votes: 0

You can also try this line:

border="10" style="border-color: red green blue yellow"

1st color is the top, 2nd left, 3rd right, 4th bottom... but it may not work in older browsers. I think IE5 and higher it's ok.


Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members