View Single Post
Old 11-27-2010, 07:04 PM  
Simon
Confirmed User
 
Simon's Avatar
 
Industry Role:
Join Date: Aug 2003
Location: Florida's Kinky Keys
Posts: 189
Quote:
Originally Posted by Mutt View Post
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.
You can do it by putting the class on the Image tag instead of the Anchor/Link tag.

Code:
<style type="text/css">
a img.thumb {border:1px solid #000; padding:4px;}
a:hover img.thumb {border:1px solid #fff; padding:4px;}
</style>

<a href="file.wmv"><img class="thumb" src="thumbnail.jpg" border="0" width="300" height="200" /></a>
__________________
See most arguments on GFY explained in about 5 seconds
email: simon <at> IndustryInc dot com | icq: 269~043~019
"If you want a happy ending, that depends, of course, on where you stop your story."
Simon is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote