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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T15:02:41+00:00 2026-06-09T15:02:41+00:00

I have a site with a portfolio image, when the image is hovered on,

  • 0

I have a site with a portfolio image, when the image is hovered on, an overlay appears.

I have implemented this in such a way that it means when the code is multiplied (for 3 different portfolio items) the overlay is always only over the first image, rather than on each different image being rolled-over.

Can anyone help?

Live link is here

The code used to make the image overlay:

CSS:

.image { 
    position: relative; 
    height: 240px;
}
.hoverimage { 
    position: absolute; 
    top: 5px; 
    left: 25px; 
    display: none;
}
.image:hover .hoverimage { 
    display: block; 
}​

HTML:

<img src="images/portfolio_image_1.png" class="captionme" 
title="I am the only son" alt="Porfolio detail" />

<img src="images/portfolio_image_1.png" class="captionme" 
title="I am the only son" alt="Porfolio detail" />

<img src="images/portfolio_image_1.png" class="captionme" 
title="I am the only son" alt="Porfolio detail" />
  • 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-09T15:02:43+00:00Added an answer on June 9, 2026 at 3:02 pm

    To overlay on each different image being rolled-over, you’ll have to make some changes in your HTML and CSS files. In your HTML file search for <div class=”image”> and put each <img class=”hoverimage”> element inside <div class=””imgpost”>:

    <div class="image">
      <div class="imgpost">
        <img src="images/portfolio_image_1.png" class="captionme" title="I am the only son" alt="Porfolio detail">
        <div class="thecaption">I am the only son</div>
        <img class="hoverimage" src="images/portfolio_overlay.png" alt="">
    </div>
      <div class="imgpost">
        <img src="images/portfolio_image_1.png" class="captionme" title="I am the only son" alt="Porfolio detail">
        <div class="thecaption">I am the only son</div>
        <img class="hoverimage" src="images/portfolio_overlay.png" alt="">
    </div>
      <div class="imgpost">
        <img src="images/portfolio_image_1.png" class="captionme" title="I am the only son" alt="Porfolio detail">
        <div class="thecaption">I am the only son</div>
        <img class="hoverimage" src="images/portfolio_overlay.png" alt="">
    </div>
    </div>
    

    Then in your CSS add/modify the folowing styles:

    .hoverimage { position: absolute; top: 1px; left: 1px; display: none;}
    
    .imgpost .hoverimage {
    border: none;
    background: none;
    }
    
    .imgpost:hover .hoverimage {
    display: block;
    }
    

    Then delete this style:

    .image:hover .hoverimage { display: block; }​
    

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

Sidebar

Related Questions

Re-writing a photography portfolio site, and urls have to follow the format: [site].com/portfolio/[category]/[image] to
I have a site w/ an image gallery (Portfolio) page. There is drop-down navigation
So i have this site: http://onthemouse.com/ . I have my portfolio images in a
I have a friend that is making a portfolio site. He has some high
In my portfolio site I have listed my projects under separate tabs (tab menu).
Basically, have a portfolio site I'm working on, with upwards of 15 pieces in
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
Live site. Ideally, between border-top and border-bottom, I'd like to have 3 portfolio thumbnails,
For example I have site http://localhost/site In IIS I set that 404 error causes

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.