I have a image I want to use as a rollover image by shifting the image up while the user hovers over it.
The code I have so far is below. The image shows up I just can't get the rollover effect to work.
HTML<li>
<div class="box_label" id="trophy-whitetail-news_label"></div>
<div class="box_image" id="trophy-whitetail-news_image"></div>
<div class="box_text" id="trophy-whitetail-news_text">
<p><b>Trophy Whitetail News</b></p>
<p>Sign up for news on topics such as Whitetail Nutrition, Hunting Tactics, Hunting Gear and Promotions.</p>
<a class="box_btn" id="trophy-whitetail-news_btn" href="timberghost-coupons.html" target="_blank">Sign Up Today</a>
</div>
</li> CSS#hp_boxes #trophy-whitetail-news_btn {
background: url(images/trophy-whitetail-news_btn.png) no-repeat;
width: 130px;
height: 28px;
display: block;
text-indent: -99999px;
}
.box_btn:hover{
background-position: 0 -28px;
} Here is a link to the page.. TimberghostShop
The links in question are the three buttons in the three boxes below the rotating banner ad.
I have been scrutinizing this thing for a couple of hours now. My patience has run out.
Any help is appreciated.
Josh
Last edited by Shadrach; 04-16-2010 at 10:20 AM..
|