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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T23:04:16+00:00 2026-05-10T23:04:16+00:00

I’m trying to have text spans pop up on a hover pseudo-class for different

  • 0

I’m trying to have text spans pop up on a hover pseudo-class for different lines in a menu (list items). I can have the pop-ups occupy the same space in the div if the menu/list is horizontal, but a vertical list places the popups at the same vertical height as the ‘parent’ list/menu item.

Here is the relevant code I have so far:

<div id='greenback'>   <div class='serviceframe'>     <div class='serviceslist'> <ul> <li><a href=''>item 1<span>this is popup1.</span></a></li>  <p><li><a href=''>item 2<span>This is popup 2's text but I want it to appear in exactly the same place as popup 1's text does.</span></a></li></p>  <p><li><a href=''>item 3<span>same here - how can I get all popups positioned in exactly the same place?</span></a></li></p> </ul>         </div><!-- closes serviceslist-->     </div><!-- closes serviceframe --> </div><!-- closes greenback--> 

CSS:

ul {     list-style: disc url(w-arrow.png) outside;     }    #greenback {     position: relative ;         top: 0em ;     width: 800px ;     height: 250px ;     background-color: #7EBB11 ;     border: 3px solid #112D82 ;     }  /*********SERVICE LIST MENU**********/ .serviceframe {      position: relative ;     width: 100% ;     height: 94% ;      background-color: #666666 ;      top: 3%; bottom: 3%;     } /*--serviceframe is now sitting in greenback--*/  .serviceslist {     position: relative ;     width: 100% ;     height: 90%  ;     top: 1% ;     background-color: #7EBB11 ;     font-family: Optima, Calibri, Candara, Century-Gothic,      Arial, sans-serif;     font-size: 100% ;     color: black ;     display: table-cell ;     vertical-align: middle ;     z-index: 100 ; }  .serviceslist a      {position: relative;     display: table-cell; text-align: left; height: 100%;  font: 1em sans-serif;      text-decoration: none; color: #112D82;      background: #7EBB11 ;  }  /*appearance of the <a> item (but before the <span> tag) on hover*/ .serviceslist a:hover {     color: white;     }  /*appearance of the spanned content within <a></a> tags when not hovered*/ .serviceslist a span {display: none;}  /*appearance of spanned content within <a> tags when hovered*/ .serviceslist a:hover span {     position: absolute;     display: table-cell;       margin-top: 0em; margin-left: -50%; z-index: 100;     width: 40%; height: auto; color: #FFFFFF;  background-color: #7EBB11;     font: 14px Verdana, sans-serif; text-align: left;     } 
  • 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. 2026-05-10T23:04:17+00:00Added an answer on May 10, 2026 at 11:04 pm

    My my, that’s a whole lot of HTML and css for a simple task. I wont try to read through it all, but just give you your answer

    <ul>   <li><a href=''>item 1<span>this is popup1.</span></a></li>   <li><a href=''>item 2<span>This is popup 2's text but I want it to appear in exactly the same place as popup 1's text does.</span></a></li>   <li><a href=''>item 3<span>same here - how can I get all popups positioned in exactly the same place?</span></a></li> </ul>  ul { position: relative; } ul span { position: absolute; } 

    You only need to have position relative on the ul (or one of the divs above it) because that’s what you’re wanting to make your spans absolute to.

    Also, kill those P tags around your LIs. You shouldn’t have anything between the UL and LI.

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

Sidebar

Related Questions

I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I have a text area in my form which accepts all possible characters from
I have a reasonable size flat file database of text documents mostly saved in
I have a bunch of posts stored in text files formatted in yaml/textile (from
I am trying to loop through a bunch of documents I have to put
I am trying to understand how to use SyndicationItem to display feed which is
Basically, what I'm trying to create is a page of div tags, each has
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have just tried to save a simple *.rtf file with some websites and

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.