creative<!--[if IE]> and the tag <![if !IE]> to separate HTML code for IE and the other browsers;
.button{
...whatever you want for your button looking
}
.button:after,.button:before
{
...we don't want the tooltip showing up permanently, but only on focus and hover
content:"";
display:none;
position:relative;
text-decoration:none;
cursor:pointer;
opacity:0;
z-index:0;
}
.button:hover:before,.button:focus:befor e
{
...lets draw the arrow ..
opacity:0.94;
z-index:999;
outline:none;
content:"";
display:block;
position:absolute;
top:28px;
left:50%;
margin:0 0 0 -5px;
width:0;
height:0;
line-height:0px;
font-size:0px;
border-bottom:5px solid #aaa;
border-left:5px solid transparent;
border-right:5px solid transparent;
border-top:transparent;
}
.button:hover:after,.button:focus:after
{
...lets draw the body of the tooltip ...
opacity:0.94;
...this is important: I'm saying to display the content of the DATA-TOOLTIP attribute as content ...
content:attr(data-tooltip);
display:block;
z-index:999;
position:absolute;
top:33px;
left:0;
margin:0 0 0 -20px;
width:65px;
padding:3px;
...some more code goes here to choose fonts, colors, borders, etc.
}
<!--[if IE]>
<span class='button' title='Title'>...</span>
<![endif]-->
<![if !IE]>
<span class='button' data-tooltip='Title'>...</span>
<![endif]>
productive
tired
amused
tired
productive
optimistic| Chalandamarz, chaland'avrigl laschai las vachas our d'uigl, cha l'erba crescha e la naiv svanescha .. | Primo marzo, primo aprile lascia uscire le mucche dalla stalla che l'erba cresca e che la neve sparisca ... |
You are viewing
berguina's journal