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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T21:53:29+00:00 2026-05-19T21:53:29+00:00

I am experince with html and css but not good with css positioning. Here

  • 0

I am experince with html and css but not good with css positioning. Here is the total idea. Suppose i have a image link when i hover in the link i need to show a div where i will present some info of the item. I know it should be done by absolute positioning. But this not working for me. Let me show the design:

http://beta.citystir.com/wp-content/uploads/2011/02/sadf.jpg

And my work so far you can see here: http://beta.citystir.com/static/

Here is the Html. I have shown code for one item. Hover_preview will be the whole div that should show when hover. I dont mind about the hover effect right now as i will be doing it via javascript. Only help me with how i can show the div properly.

<ul id="featured_classifields">
                    <div id="fcf_wraper">    

<li>
                        <a href="#"><img src="images/temp/featured-thumb.png" title="" alt="" width="135" height="90" /></a>
                            <div class="hover_preview">
                                <div class="hover_preview_main">
                                </div>
                                <div class="hover_preview_arrow"></div>
                            </div>
                        </li>
                        <li>
</div>
</ul>

Css:

ul#featured_classifields{
    margin: 0 30px;
    height:95px;
    overflow:hidden;
    position:relative;
}

#fcf_wraper{
    width:1600px;
    height:90px;
}

ul#featured_classifields li{
    float:left;
    width:135px;
    height:90px;
    background:#ddd;
    display:block;
    margin: 8px 8px 5px 0;
    position:relative;
}    

.hover_preview{
        position:absolute;
        z-index: 5;
        bottom:100%;
}

.hover_preview_main{
        background: #000;
        width:400px;
        height: 300px;
    }

    .hover_preview_arrow{
    }

Some details of the code:
The ul hold the full slider. Than all li are wrap with a div #fcf_wraper its width is equal to all li which i will determine by javascript but for now i just put a value. In order to not showing the extra portion of the wraper i set the overflow hidden. The problem is when i setting the overflow to hidden the div “hover_preview” is also got hidden by it 🙁

Hoping to get some help from you. Thanks!

  • 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-05-19T21:53:29+00:00Added an answer on May 19, 2026 at 9:53 pm

    Do something like this:

     $("#fcf_wraper img").hover(
                    function () {
                        $("div.hover_preview").css({
                            position: "absolute",
                            left: $(this).offset().left + "px",
                            top: $(this).offset().top - $("div.hover_preview").outerHeight() + "px",
                            display: "block"
                        });
                    }, 
                    function () {
                        $("div.hover_preview").hide();
                });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Does anyone here has any experience on how to send HTML emails that renders
Does anyone have experience using the URL Rewrite Module (see here )? Can it
I am working on a project where I am in charge of html, css
I don't have a lot of experience developing web-based data entry software, but comparative
No surprise here, possible dupes: Good Books for Learning Web Programming Required Reading for
I am planing to start writing tutorials on html, css and javascript. This year
I have some experience developing websites, but none with proper web applications. But this
I have a very strange issue, that I'm hoping someone here can help me
We want to write a UI that consists of HTML, Javascript (JQuery) and CSS.
What experience have you had with introducing a Ribbon style control to legacy MFC

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.