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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T02:07:11+00:00 2026-06-07T02:07:11+00:00

When I hover over an img within div.hover-group , the div div.hover-toggle becomes visible,

  • 0

When I hover over an img within div.hover-group, the div div.hover-toggle becomes visible, and becomes invisible when the mouse leaves the image.
The div.hover-toggle should appear within the area of the img it belongs to, aligned with its bottom border and each of the button.btns of equal width.

To illustrate:

no mouseover:

|-----------|
|           |
|    img    |
|           |
|           |
|           |
|-----------|

is mouseover:

|-----------|
|           |
|    img    |
|           |
|-----------|
| 1 | 2 | 3 |
|-----------|

I have already accomplished the hover toggling using jQuery:

$(selector1).mouseover(function(){$(selector2).hide();});
$(selector1).mouseout(function(){$(selector2).show();});

However, have been unable to align div.hover-toggle with the bottom of the image, as illustrated, it appears below the image instead.

How can this be done?

Thanks!


The DOM I am manipulating above appears below. It uses twitter bootstrap.

<ul class="thumbnails">
    <li class="span3">
        <div class="hover-group thumbnail">
            <img src="http://placehold.it/260x180" alt="">
            <div class="hover-toggle btn-group">
                <button class="btn">1</button>
                <button class="btn">2</button>
                <button class="btn">3</button>
            </div>
            <h5>Thumbnail label</h5>
            <p>Thumbnail caption right here...</p>
        </div>
    </li>
...
</ul>
  • 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-07T02:07:13+00:00Added an answer on June 7, 2026 at 2:07 am

    There is no need for JS here, you can accomplish everything with simple CSS and a little markup change (I wrapped the image and the .hover-toggle div in a .image-wrapper div):

    <ul class="thumbnails">
        <li class="span3">
            <div class="hover-group thumbnail">
                <div class="image-wrapper">
                  <img src="http://placehold.it/260x180" alt="">
                  <div class="hover-toggle btn-group">
                      <button class="btn">1</button>
                      <button class="btn">2</button>
                      <button class="btn">3</button>
                  </div>
                </div>
                <h5>Thumbnail label</h5>
                <p>Thumbnail caption right here...</p>
            </div>
        </li>
    ...
    </ul>
    

    Now the styling it needs is simple:

    .hover-group .image-wrapper {
      /* We need this to make the .hover-toggle div relative to .image-wrapper */
      position: relative;
    }
    
    .hover-group .image-wrapper .hover-toggle {
      /* set it at the bottom of .image-wrapper */
      position: absolute;      
      bottom: 0;
      /* and don't display it */
      display: none;
    }
    
    .hover-group .image-wrapper:hover .hover-toggle {
      /* only display it when .image-wrapper is being hovered on */
      display: block;
    }
    

    If you want it to show when you hover over the whole .hover-group, use this CSS instead of the last line:

    .hover-group:hover .image-wrapper .hover-toggle {
      display: block;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to get a transparent png frame image to hover over an img
I have an image that is presented after you hover over with your mouse.
I'd like it so when I hover over the image, the entire image becomes
I have a problem using a small div that should hover over pics that
I have to scale up the image when I hover over it, it should
I am trying to have text appear in a <div> when you hover over
When I hover over the whole button, I would like it to appear over
My Code I have a div that when you hover over it shows different
I have the following jQuery code to replace an image when you hover over
After I hover over an img once, the effect wears off. I want my

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.