Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6029473
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T04:53:28+00:00 2026-05-23T04:53:28+00:00

I want to drop the opacity and overlay text on a thumbnail image when

  • 0

I want to drop the opacity and overlay text on a thumbnail image when I mouse over it. I have several ideas about how to do it, but I’m fairly certain they’re inefficient and clumsy.

  1. Make a duplicate image in Photoshop with the text overlay and reduced opacity. Swap the original out for the duplicate on mouseover.
  2. Use CSS to drop the opacity on mouseover. Use Javascript to toggle visibility of a div containing the overlay text.

The problem I see with 1 is it seems like an unnecessary use of space and bandwidth, and will cause slow load times. With 2, it seems like I’d have to hard-code in the location of each div, which would be a pain to maintain and update. I know this is a somewhat general question, but I’m at a loss about how to go about this. How can I do this relatively simple task in a way that will make it easy to add new thumbnails?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T04:53:29+00:00Added an answer on May 23, 2026 at 4:53 am
    • Wrap your image in a <div class="thumb">
    • Add position: relative to .thumb.
    • Add <div class="text> inside .thumb.
    • Add display: none; position: absolute; bottom: 0 to .text.
    • Use .thumb:hover .text { display: block } to make the text visible on hover.

    Like this: http://jsfiddle.net/dYxYs/

    You could enhance this with some JavaScript/jQuery: http://jsfiddle.net/dYxYs/1/

    $('.text').hide().removeClass('text').addClass('text-js');
    
    $('.thumb').hover(function(){
        $(this).find('.text-js').fadeToggle();
    });
    

    This way, the basic effect still works without JavaScript, and users with JavaScript get the appealing fade effect.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want simple drop-down menu. But I have one problem. I want when I
I want to drop a database. I have used the following code, but to
I want to drop some data from treeview to the datagridview temporarily, but the
I want to drop a now supposedly redundant file in SQL Server (2005), but
I have a TcxDBColorCombobox and I want the drop down to not include the
I have a server in my network for which I want to DROP outbound
I have a large multidimensional array and I basically want to drop the first
I have the hg shelve (not attic) extension installed, and I want to drop
I have a drop down. I want the drop down to be of 200
I'd like to use some wp8-specific apis but I don't want to drop support

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.