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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T15:27:50+00:00 2026-06-16T15:27:50+00:00

I have a 2-by-2 grid of images arranged using float property in CSS. I

  • 0

I have a 2-by-2 grid of images arranged using float property in CSS.
I want to show a small overlay on each image when i hover over it, by switching its opacity from 0 to 1 on hover. My code works great when i hover the images in the top row.
But when I hover over the lower-row images, the overlay activated is still the one from the top row.

I think its an issue with positioning.

My code is here : http://jsfiddle.net/zZXZX/27/

PS : please dont mind the minor faults with the design.

  • 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-16T15:27:51+00:00Added an answer on June 16, 2026 at 3:27 pm

    You are positioning your overlay in absolute, without specifying a relative parent.

    http://jsfiddle.net/tomprogramming/zZXZX/28/

    position:absolute positions your overlay with offsets relative to its first parent that is not position:static, or if none are found, the document root.

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

Sidebar

Related Questions

I have a grid of many images and each image has a CSS class
I have a grid view in which I want to show images. I am
I have grid of images, when the mouse is over any given image a
Hi I have a grid of around 30 cells each with two images, a
I have a list of images in grid view.I want to display a gallery
I have about 12-15 images that I want to align together in a grid,
I have something like this in my xaml: <Grid> <Image Name=image Source=../../Images/DefaultImage.png HorizontalAlignment=Stretch VerticalAlignment=Stretch></Image>
I have a grid of images and buttons, and I want to animate motion
I have a grid of images/buttons, and I want the user to be able
I have a grid which I want to populate with images. So Internally 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.