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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T07:33:21+00:00 2026-06-16T07:33:21+00:00

I try to create tooltips for images on my site, and I have the

  • 0

I try to create tooltips for images on my site, and I have the following problem. The images are set with float:left, and there are 3 images per row, and there are several rows. The tooltip is supposed to be on the right side from the image, and it’s working fine, but only for the images on the first row. When hovering over images on the second or third row the tooltip is on the place where the tooltip is for the third image from the top. What am I doing wrong?

enter image description here

My css-code:

.friend_img { opacity:0.6; margin:0; width:83.333333px; float:left; }
.friend_img:hover { opacity:1.0; }

.friend span {display:none; padding:2px 3px; margin-left:8px; width:130px;}
.friend:hover span{display:inline; position:absolute; background:#ffffff;
border:1px solid #cccccc; color:#6c6c6c;}

HTML-code:

<a class="friend" href="profile.php?id=32">
   <img class="friend_img" src="member.png">
   <span>FIRST NAME LAST NAME</span>
</a>
  • 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-16T07:33:22+00:00Added an answer on June 16, 2026 at 7:33 am

    This is the modified css:

    .friend_img {
        opacity:0.6;
        margin:0;
        width:83.333333px;
        float:left;
    }
    .friend_img:hover {
        opacity:1.0;
    }  
    span{
        display:none;
    }
    .friend:hover span{
        display: inline-block;
        z-index:100;
        width:130px;
        top:20;
        left:80px;
        position: absolute;
        background:#ffffff;
        border:1px solid #cccccc; color:#6c6c6c;
    }
    a.friend {
        position:relative;
        display:inline-block
    }
    

    And this is the html:

    <div style="width:300px;border:1px solid black; text-align:center" >
        <div>
            <a class="friend" href="profile.php?id=32">    
                <img class="friend_img" src="icon.png">    
                <span>FIRST NAME LAST NAME</span>
            </a>
    
            <a class="friend" href="profile.php?id=32">    
                <img class="friend_img" src="icon.png">    
                <span>FIRST NAME LAST NAME</span>
            </a>
    
    
            <a class="friend" href="profile.php?id=32">    
                <img class="friend_img" src="icon.png">    
                <span>FIRST NAME LAST NAME</span>
            </a>
        </div>
    
        <div>
    
            <a class="friend" href="profile.php?id=32">    
                <img class="friend_img" src="icon.png">    
                <span>FIRST NAME LAST NAME</span>
            </a>
    
            <a class="friend" href="profile.php?id=32">    
                <img class="friend_img" src="icon.png">    
                <span>FIRST NAME LAST NAME</span>
            </a>
    
    
            <a class="friend" href="profile.php?id=32">    
                <img class="friend_img" src="icon.png">    
                <span>FIRST NAME LAST NAME</span>
            </a>
        </div>
    
    </div>
    

    I posted the working example here: http://jsfiddle.net/7jZQa/2/

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

Sidebar

Related Questions

I try to create the simplest WinAPI window using assembly NASM. I have problem
I have recently set up Yii and when I try create an app via
I have the following code: try { //Create connection SQLiteConnection conn = DBConnection.OpenDB(); //Verify
I am following this tutorial . All is going well until I try create
I try create custom format for maven assembly plugin. I use following instruction how
I'll try create a controler in towerjs, but I have an error while updating
I have specific troubles when I try create node. From context menu everything gona
I try create trigger CREATE TRIGGER `aster_users2` after update ON `aster_users` FOR EACH ROW
guy. I have a strange trouble When I try create a table with timestamp
I have following two methods. 1st method //SymmetricEncryting private byte[] SymmetricEncrypt() { try {

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.