Pages vues depuis 25/05/2001 : 109 511 420
Index du forum »» Le coin des codeurs »» [Résolu] - Infobulle avec image
Dans le HTML
<a class="bulle" href="audauxstory.htm"><img src="Images/historique.jpg" border=0><span>Historique d'Audaux<img src="vignettes/audaux.JPG"/></span></a>
Dans le fichier CSS
a.bulle span{
display: none;
}
a.bulle:hover{
background: none; /*contournement bug IE*/
}
a.bulle:hover span{
display: inline;
position: absolute;
top: 213px;
left: 500px;
background: #fc9;
text-align: center;
text-decoration: none;
color: blue;
padding: 0.2em;
BORDER-RIGHT: black 1px solid;
BORDER-TOP: black 1px solid;
BORDER-LEFT: black 1px solid;
BORDER-BOTTOM: black 1px solid;
}
Message édité par : Newdev / 30-03-2008 16:13
A.ag_pop
{
position:relative;
text-decoration: none;
font-weight: bold;
}
A:hover.ag_pop
{
text-decoration: none;
background: none;
}
A.ag_pop span
{
display: none;
}
A:hover.ag_pop span
{
display: inline;
text-align:left;
position: absolute;
bottom:1em;
right:3em;
z-index: 20;
background: #FEE5B3;
color: #000;
border:1px solid #000;
width:160px;
font-weight:bold;
font-size: 15px;
line-height:20px;
padding:10px;
}
echo '<a href="lien" class="ag_pop"><span>texte</span></a>';