View Full Version : How do I take the border off an image link?

07-31-2006, 02:38 PM
I have thumbnail photos that I made into image links that preview into larger images when clicked. I also want to have a black 1 pixel border on them. The problem is, when I put the border on, because the images are links, the border takes on the blue link color, which looks terrible. How do I change this so they just have the black border? CSS? Thanks for the help, this board never lets me down.

07-31-2006, 03:06 PM
CSS will do

img {
border: 1px solid #000000;

try giving this aswell
padding: 4px;
background-color: #cccccc;

07-31-2006, 03:31 PM
What if I want just these particular image links to have a black border? If I put that in my style sheet, won't every image link in my site have a black border?

08-01-2006, 12:54 PM
The use a CSS class or ID.

08-01-2006, 01:38 PM
How would I do that? Sorry, I'm not so knowledgable of CSS

Creative Insanity
08-01-2006, 06:22 PM
Or do it the easy way.

<a href'"link_to_somwhere.com">some_images.gif</a>