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

The Archive Base Latest Questions

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

I have a row of thumbnails (container elements) that are set to float left;

  • 0

I have a row of thumbnails (container elements) that are set to float left;
The thumbnails are scaled down to fit in a row.

<style type="text/css">
    .thumbnails{
        float:left;
        position:relative;
    }
    .thumbnails img{
        /* ... */
        width:65px;
        height:47px;
    }
</style>

When the user hovers over a thumbnail, I would like to show a pop-up of the thumbnail with its original size:

<style type="text/css">
    /* in addition to the above... */
    .th_selector:hover img{

        position:absolute;
        top:-30px;
        left:-30px;

        width:150px;
        height:113px;

        display:block;
        z-index:999;
    }
</style>

Once I move the mouse over a thumbnail, the image bigger image is shown (as intended).
But I have two problems:
1) The other thumbnails jump one position to the left. They end up below the pop-up image. This can also create a flicker (depending on the position of the mouse pointer).
2) If the window is too small and if there are two rows of thumbnails, there is a line-break (which is not very nice).

How could I create a row of thumbnails with a nice hover-image, while keeping the original position of the 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-06-18T19:01:39+00:00Added an answer on June 18, 2026 at 7:01 pm
    .thumbnails {
        float:left;
        position:relative;
        width: 65px;
        margin-right: 10px;
    }
    .thumbnails img{
        position:relative;
        display:block;
        width:65px;
        height:47px;
    }    
    .thumbnails:hover img {
        top:-25px;
        left:-40px;
        width:150px;
        height:100px;
        z-index:999;
    }
    

    http://jsfiddle.net/functionfirst/V4YaQ/1/

    In your code example, you shouldn’t use position absolute as this declaration removes the element from the document flow. This essentially means the element no longer has a ‘foot-print’ on the page, hence thumbnails to the right are effectively collapsing in under the now absolutely positioned element.

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

Sidebar

Related Questions

I have a page with several image thumbnails that have their opacity set to
I have 3 row data in UIPickerView that is timeHour, timeMinute, timeSecond. How to
Lets say I have one row with three columns - some buttons on left
I have a ScrollPane and JTable that should only have one row of data.
I currently have a list of thumbnails that is located in a ul tag
I have a collectionview that I am using to show thumbnails. I want it
I have a product list that put 3 products on a row and clears
I have some thumbnails that slideToggle a hidden div. I only want one to
I have a bunch of thumbnails that I wish to display in my page.
I have installed a plugin in wordpress that creates image thumbnails and displays links

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.