How to change image border colors using CSS?

They have: 22 posts

Joined: Oct 1999

I've tried using all ways, classes, redefining the A:link property but nothing seems to work in Internet explorer--the border is still the same color as was specified in the BODY tag. Help?

John Pollock's picture

He has: 628 posts

Joined: Mar 1999

Try adding:

A:visited {color:black}

or maybe even just write:

A: {color:black}

Let me know if it helps.

------------------
John Pollock
http://www.pageresource.com
http://www.javascriptcity.com

They have: 48 posts

Joined: Dec 1999

You can use the box properties of CSS to do this. Don't specify any border colour in the body tag. Then use something like this:

code:

<DIV style="border-color:red; border-style:solid"><img src="image.jpg" border="0"></DIV>[/code]

This will give the image a red border.

------------------
Do you want to have fun?
TomWorld 

Do you want to have fun?
TomWorld

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.