1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title></title>
<meta name="GENERATOR" content="Quanta Plus">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-15">
<style type="text/css">
.info{position:relative; /*this is the key*/
z-index:24;
/*background-color:#ccc;*/
color:#000;
text-decoration:none}
a.info:hover{
display:block;
}
a.info div {visible:false;display:none}
a.info:hover div{/*the span will display just on :hover state*/
visible:true;
display:block;
position:absolute;
padding:5px;
top:-5em;
left:2em;
width:15em;
border:2px outset #0cf;
background-color:skyblue;
color:#000;
text-align: center;
font-family:verdana;
font-size:11px;
z-index:25;}
</style>
</head>
<body>
<br/>
<br/>
<br/>
<br/>
<br/>
<a class="info" href="#" style="position:absolute; left:40%;"><input type="text" name="myinput" /><div> Voici<br/>l'infobulle<br/>en css</div></a>
</body>
</html> |
Partager