Grow your CSS skills. Land your dream job.

Thickbox – hide title on image hover

  • # December 22, 2009 at 2:04 pm

    Hi all,

    I’m using thickbox.js for a lightbox style image gallery. I’ve added much to the "title" option in the static html so that it can display several lines of styled info when activated. The issue is that this code displays when you roll over the thumbnail of the gallery (i.e. the image that calls thickbox and includes the title that is passed along.

    Is there a way to tell browsers not to display the title when hovering over an image, or would I be forced to somehow change what is passed along to thickbox? I’ve seen users of a different lightbox use the option to change the variable.. but I’m having trouble doing this. Has anyone worked this out in the past?

    Thanks!

    # December 22, 2009 at 8:32 pm

    You could swap the text from the title attribute with the alt attribute and vice versa. Then tell the lightbox plugin to pull the description from the alt attribute.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".