kraftomatic
08-23-2010, 04:00 PM
Hey All,
I've got a list of images that I want to apply a background image over the top of. It would just be over the top left corner of the image. The trick is I want the entire area of the main image to remain clickable. Here's the CSS I have:
.new {
background: url(new_icon.gif) no-repeat top left transparent;
width: 65px;
height: 65px;
position: absolute;
display: block;
}
And here is the HTML:
<a href="" title="">
<span class="new"></span>
<img src="image.jpg" width="142" height="142" alt="" />
</a>
I can get the image to display properly, but I cannot get the entire area to act as clickable. Any ideas on what I might be missing?
Any suggestions would be appreciated.
Thanks.
I've got a list of images that I want to apply a background image over the top of. It would just be over the top left corner of the image. The trick is I want the entire area of the main image to remain clickable. Here's the CSS I have:
.new {
background: url(new_icon.gif) no-repeat top left transparent;
width: 65px;
height: 65px;
position: absolute;
display: block;
}
And here is the HTML:
<a href="" title="">
<span class="new"></span>
<img src="image.jpg" width="142" height="142" alt="" />
</a>
I can get the image to display properly, but I cannot get the entire area to act as clickable. Any ideas on what I might be missing?
Any suggestions would be appreciated.
Thanks.