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

  • Home
  • SEARCH
  • 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 to find a way to produce drop caps (large initial letters several
I want to loop over the contents of a text file and do a
Ok so I have this drop down and I want to bold the first
I have drop down list with 5 items. I want to send the selected
Why does SQL 2008 all of a sudden want to drop my tables when
I want create a drop shadow around the canvas component in flex. Technically speaking
I want to add a Select One option to a drop down list bound
Want to know what the stackoverflow community feels about the various free and non-free
I want to assign the decimal variable "trans" to the double variable "this.Opacity". decimal
I have created a nested list with drag/drop functionality. My issue is that I

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.