![]() |
|
||||||||||
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
|||||
|
|
#1 |
|
WLC Member
Join Date: Aug 2011
Posts: 6
|
Hello, I am having an issue that's driving me nuts: My tooltip gets behind the images. Here's the code:
HTML Code:
<div id="continente"> <div class="tabbertab"> <h2>North America</h2> <p class="navega"> <a class="dicasp" href="fotos.html?zona=NA&pais=CA&fotos=0" target="_blank"><img src="./imagens/ca.gif" alt="Canada"/><span>Canada</span></a><span>(0)</span> <a class="dicasp" href="fotos.html?zona=NA&pais=CU&fotos=0" target="_blank"><img src="./imagens/cu.gif" alt="Cuba"/><span>Cuba</span></a><span>(0)</span> <a class="dicasp" href="fotos.html?zona=NA&pais=MX&fotos=0" target="_blank"><img src="./imagens/me.gif" alt="Mexico"/><span>Mexico</span></a><span>(0)</span> <a class="dicasp" href="fotos.html?zona=NA&pais=US&fotos=0" target="_blank"><img src="./imagens/us.gif" alt="USA"/><span>United States</span></a><span>(0)</span> ............... etc... etc... </p> </div> </div> Code:
div#continente a.dicasp span { display: none; }
div#continente a.dicasp:hover span {
position: absolute;
display: block;
left: 55%;
top: 75%;
background-color: #02111A;
border: 1px solid #566670;
padding: 5px;
font: normal bold 16px "Nevis Bold", Tahoma, Georgia;
color: #FFFFFF;
width: 200px;
}
div#continente a.dicasp {
position:relative;
z-index:24;
}
.tabbertab {
padding: 15px 0;
border: 2px groove #FFFFFF;
height: 110px;
}
The images are 30:30 pixel with each of them with a country code and are about 160 all stacked neated in the tabbertab class. 3 rows of images. For instance, if I put the mouse pointer over the first one, the tooltip gets behind the second and all the others images.
|
|
|
|
|
|
#2 |
|
Banned
Join Date: Jun 2006
Location: Blackp ool U.K.
Posts: 3,197
|
Give the "tooltip element" a higher position in the stacking order. (z-index)
|
|
|
|
|
|
#3 |
|
WLC Member
Join Date: Aug 2011
Posts: 6
|
|
|
|
|
|
|
#4 |
|
Banned
Join Date: Jun 2006
Location: Blackp ool U.K.
Posts: 3,197
|
Possibly, but with 160 following sibling elements in the stacking order, the z-index will need to be more than 24 to bring it to the top.
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
Linear Mode |
|
|