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 9205745
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T00:01:25+00:00 2026-06-18T00:01:25+00:00

I have a portfolio section I am building on a page that displays a

  • 0

I have a portfolio section I am building on a page that displays a thumbnail of an image. I also have a hidden div that contains information about the portfolio project that I would like to show when a user mouses over the thumbnail.

Here is the HTML:

<div class="portfolio">
    <a href="#"><img src="photos/work_2.jpg" alt="work_1" width="181" height="180"></a>
    <div class="portfolio-overlay" style="display:none;">
        <p class="client-name">Encore Azalea</p>
        <div class="white-line"></div>
        <p class="services">website redesign +<br />mobile site launch</p>
    </div>
</div>

Here is the jQuery:

<script>
$(".portfolio a").hover(function () {
$(".portfolio-overlay").toggle("slow");
});
</script>

My intent is to display .portfolio-overlay when you mouse over the image and hide it when you mouse out.

I know there is something missing with the jQuery but, if I knew what it was, I wouldn’t be posting this (you know how it goes).

Thanks.

  • 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-06-18T00:01:26+00:00Added an answer on June 18, 2026 at 12:01 am
    $('.portfolio a:has(>img)').hover(function(e){
      var $overlay = $(this).siblings('.portfolio-overlay');
      $overlay.toggle('slow');
    },function(e){
      var $overlay = $(this).siblings('.portfolio-overlay');
      $overlay.toggle('slow');
    });
    

    Something that that perhaps? Since you’re starting at the anchor you can reference .siblings() and find the overlay that’s within the same .portfolio, then toggle it accordingly. This also makes each .portfolio run independent of others on the page, where as using $('.portfolio-overlay') will toggle all the items on the page.

    Here’s a working example: http://jsfiddle.net/bradchristie/AhnGA/1/

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

Sidebar

Related Questions

I have a one page site that displays a portfolio. Basically it consists of
I'm building a one-page portfolio that has a contact form/section at the bottom of
On my portfolio page I have this setup: <div id=portfolio> <ul id=sites> <li> <h3><a
I am building a portfolio page, which contains quite anumber of images. I am
I am building a one-page website and for the Portfolio section I will be
I have a one-page portfolio style website that scrolls with JQuery, and I cannot
I have created my Portfolio and put there a Google+ button. The page is
Re-writing a photography portfolio site, and urls have to follow the format: [site].com/portfolio/[category]/[image] to
I am creating a portfolio page for m personal site. I have a slider
I am creating a portfolio page for m personal site. I have a slider

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.