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?
My css-code:\[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;}\[/code\]HTML-code:\[code\]<a class="friend" href="http://stackoverflow.com/questions/14035212/profile.php?id=32"> <img class="friend_img" src="http://stackoverflow.com/questions/14035212/member.png"> <span>FIRST NAME LAST NAME</span></a>\[/code\]