Make entire album div a link?

I'm working in the theme Zenpage. I'd like to make the entire album area clickable, not just the thumbnail and the title, but the entire shaded div. I'm hung up on this. At first I thought that maybe I could just adjust the CSS somehow, but that doesn't seem to want to work.

I did a search for <?php echo html_encode(getAlbumLinkURL()); ?>" and didn't have any luck, but I feel like this is what I should be using somewhere below to adjust things.

Here's the section of code that I know I need to adjust somehow:

<?php while (next_album()): ?>

<div class="album">

<div class="thumb">
" title="<?php echo gettext('View album:'); ?> <?php printBareAlbumTitle(); ?>"><?php printCustomAlbumThumbImage(getBareAlbumTitle(), NULL, 95, 95, 95, 95); ?>
</div>
<div class="albumdesc">
<h3>" title="<?php echo gettext('View album:'); ?> <?php printBareAlbumTitle(); ?>"><?php printAlbumTitle(); ?></h3>
<?php printAlbumDate(""); ?>

</div>
</div>
<?php endwhile; ?>

Any thoughts?

Comments

  • acrylian Administrator, Developer
    Well, you can of course not change HTML structure by changin CSS…
    You have to modify the theme and put a link around the whole elements you want to link.

    Beware of block level elements within inline elements! In HTML5 it is allowed to wrap links being inline ones around block level elements like div or headlines, on older HTML/XHTML standards it is invalid. Even if using HTML5 some older browsers will not recognize it and therefore ignore it completely respectively cause weird behaviour.

    This is rather web technique basics actually.
Sign In or Register to comment.