Is there a way to make a line appear, around 10px in size, when hovering over an image at the bottom of that image?
I came across this effect on MTV's website within their "You would also like these" section below each post. They utilized css-background sprites to achieve this.
Despite multiple attempts, I have been struggling to recreate this hover effect successfully. Everything seems to be working except for the main line appearing upon hover. Here is my current code
CSS
.yel_strip{background-position:-280px -495px; width:165px; margin:-8px 0 0 0; height:5px; position:absolute; display:none; z-index:1;}
.yel_strip:hover{ background:url(http://mtv.in.com/images/sprite_v1.png) no-repeat;}
HTML
<div class="movieL hover_thumb">
<div><a href=""><img width="165" height="93" alt="" src=""/></a>
<div class="yel_strip"></div>
</div> </div>
Any guidance or assistance with this issue would be greatly appreciated. Thank you!