custom field and image rollover
-
I’m loading post thumbnails via custom fields in my wordpress theme and would like to make an image rollover.
Right now I’m calling the image like this:
<a class="thumb" style="background:url(<?php $values = get_post_custom_values('thumb'); echo $values[0]; ?>) no-repeat;" href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"></a>And have this in my CSS:
a.thumb { display: block; width: 150px; height: 85px; padding: 0px; text-decoration: none; } a.thumb:hover { background-position: 0 -150px; }But it doesn’t work. Has anybody an idea???
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
The topic ‘custom field and image rollover’ is closed to new replies.