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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T17:39:25+00:00 2026-06-09T17:39:25+00:00

this is the link When you take the mouse over the four image boxes

  • 0

this is the link

When you take the mouse over the four image boxes under ‘TUI Exclusive Offering’, you get the effect described in the question title.

html :

<div class="maindiv">
<img src="img/img.jpg" />


<div class="lower_div">

this is the lower div1<br>
this is the lower div2<br>
this is the lower div3<br>
this is the lower div4<br>
this is the lower div5<br>
this is the lower div6<br>
</div>
</div>

the way to make the lower_div sit at the bottom is to make its position absolute and bottom 0. But for whatever reason in my big html page , this technique is not working though it does work in another html page containing only this snippet.

So I am looking for another way to make the div sit at the bottom. Besides I also need to make it show up fully on mousehover.

How to achieve those ?

  • 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-09T17:39:26+00:00Added an answer on June 9, 2026 at 5:39 pm

    Here is a working demo: http://jsfiddle.net/qbyeC/

    The javascript is simple when jQuery is involved. All you have to do is define on mouseenter and mouseleave for each maindiv.

    $('.maindiv').on({
        mouseenter : function(e){
            $(this).children('.lowerdiv').stop(true,false);                    
            $(this).children('.lowerdiv').animate({top:0,marginTop:0});
        },
        mouseleave : function(e){
            $(this).children('.lowerdiv').stop(true,false);
            $(this).children('.lowerdiv').animate({top:'100%',marginTop:'-40px'});
        }
    });​
    

    This checks for the lowerdiv class and animates it to the right position on each event. NOTE: The marginTop on the second line of mouseleave should match the margin-top css property on the lowerdiv class. This is the amount that you want the div to stick up when the mouse is not over the element.

    The css should be modified to your liking, but these are the important parts:

    .maindiv {
        overflow:hidden;
        position:relative;
    }
    .lowerdiv {
        position:absolute;
        width:100%;
        bottom:0px;
        top:100%;
        margin-top:-40px;
    }
    

    The html code is how you put it except I changed lower-div to lowerdiv to match maindiv.

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

Sidebar

Related Questions

do take alook at this link below.. http://www.7tech.co.in/php/how-to-generate-a-graph-image-in-php/ I am wondering, what does this
If there is already a discussion about this somewhere, I'll take a link as
Take a look at this link http://dncminneapolis2012.com/new2 If you click on two, it slides
Please take a look at this link , then click on the bottom in
Ok so lets say I need to take a part this link: http://www.dailymotion.com/video/xnstwx_bmw-eco-pro-race_auto I
If you take a look at this link you'll see text in the second
Please take a look at this link: http://bethhaim.spin-demo.com/ I can't figure out why there
Take the TripPriceService.wsdl from this link Add a service reference(ServiceReference1) to a windows application,
Take a look at the this link . Scroll down a bit and you
Hey if you take a look at this link below http://www.thesun.co.uk/sol/homepage/showbiz/4491771/Cheryls-been-married-she-may-hurt-my-son-Tre.html You will notice

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.