css
<style>
a {
position: relative;
display: block;
float: left;
padding: 0 5px 5px 0;
text-decoration: none;
}
.ff:before {
position: absolute;
background-color: rgba(0, 0, 0, 0.65);
-webkit-border-radius: 6px;
-moz-border-radius: 6px;
border-radius: 6px;
color: #FFFFFF;
content: attr(data-icon-text);
display: block;
left: 20%;
opacity: 0;
padding: 2px 5px;
top: 0;
white-space: nowrap;
z-index: 10;
}
a:hover:before {
opacity: 1;
top: -99%;
}
</style>
html
<ul>
<li><a class="ff" data-icon-text="Yahoo" href="https://www.facebook.com/HansonResearch" target="_blank" class="facebook">fdf</i></a></li> </ul>
Comments
Post a Comment