View Single Post
Old 11-27-2010, 05:58 PM  
Mutt
Too lazy to set a custom title
 
Mutt's Avatar
 
Industry Role:
Join Date: Sep 2002
Posts: 34,431
CSS problem - what am i doing wrong?

I'm trying to put a single pixel border around thumbnails with some padding between the thumbnail and border - and on hover the border will change color.

so i did this

a.blah:link
{border: 1px solid #000;
padding: 4px;
}

a.blah:hover
{border: 1px solid #FFF;
padding: 4px;
}

and......

<a href="file.wmv" class="blah"><img src="thumbnail.jpg" border="0"></a>

what the result is - there's a single border with the 4px padding but the border doesn't surround the entire thumbnail, it's only like 10 pixels in height.

__________________
I moved my sites to Vacares Hosting. I've saved money, my hair is thicker, lost some weight too! Thanks Sly!
Mutt is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote