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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T08:52:46+00:00 2026-05-27T08:52:46+00:00

I am trying to create a popup in CSS. In this case, it’s a

  • 0

I am trying to create a popup in CSS. In this case, it’s a small div containing text labeling the image you’re hovering. However, I am definitely doing it wrong. I am either positioning the :hover div in CSS incorrectly (I’ve tried different positions (fixed, absolute, float, clear, etc.), but it keeps showing up inside the main div. I could wrong with my HTML, as I’m placing it within the main div that you hover for the popup to appear. But I’d think it has to be there to show up when you hover the main div. Any help is appreciated. Code below:

HTML:

<div class="topIcons topIconsHover topLabelHover">
    <a href="image.html"><img src="icons/image.png" /></a> 
    <div class="topLabelHover">Image</div>  
</div>  

CSS:

.topIcons {
    padding:14px 6px 10px 6px;
    float:right;
 }

.topIconsHover:hover {
    background-color:#555555;
    cursor:pointer
}

.topLabelHover:hover {
    background-color:#555555;       
    width:80px;
    height:24px;
    position:fixed;
        top:40px;
}

I am fine with using JavaScript (or JQuery) if it’s necessary, but it seems like something simple enough for CSS. Also, is it better to use CSS over JavaScript (or Jquery) when possible because perhaps it’s faster? I could be mistaken there, but would be interested to of the best practice.

edit* Still having trouble so thought I’d explain further what I’m trying to do with my page layout and perhaps it’ll help. I have a series of icons in a navigation bar, all floated right. Upon hovering, I’d like the background to change (which I’ve managed in CSS with the “topIconsHover” class) and for a “label” div to appear beneath the related hovered icon div in the navigation bar when hovered.

  • 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-27T08:52:47+00:00Added an answer on May 27, 2026 at 8:52 am

    Think you want something like this:

    .topIcons {
        padding:14px 6px 10px 6px;
        float:right;
     }
    
    .topIconsHover:hover {
        background-color:#555555;
        cursor:pointer
    }
    
    .topLabelHover {
        display:none;
    }
    
    .topIconsHover:hover .topLabelHover {
        display:block;
        position:absolute;
        background-color:#555555;       
        width:80px;
        height:24px;
        top:40px;
    }
    

    http://jsfiddle.net/kHPZK/

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

Sidebar

Related Questions

I am trying to create a div element which shows some text as popup.
I'm trying to create a window that will become a small popup window, containing
Im trying to create a browser popup window with some text, rather than using
I'm trying to create a custom tweet button with a popup, this part works.
I'm trying to create a simple modal popup. I have the CSS done, and
I am trying to create popup using the jqueryui dialog. I am trying to
I'm trying to create a dynamic popup window that is able to be re-sized.
I'm trying to create a wx.Menu that will be shared between a popup (called
I'm trying to create a standardized show/hide element system, like so: <div class=opener popup_1>Click
I have a simplr svg-graph and I'm trying to create a simple tooltip-popup for

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.