How To Create CSS Bubble Tooltip in blogger

1.Login to your blogger dashboard--> layout- -> Edit HTML

2.Scroll down to where you see </head> tag .

3.Copy below code and paste it just before the </head> tag and save your template.

<style type='text/css'>
a.tt{
position:relative;
z-index:24;
color:#3CA3FF;
font-weight:bold;
text-decoration:none;
}
a.tt span{ display: none; }

/*background:; ie hack, something must be changed in a for ie to execute it*/
a.tt:hover{ z-index:25; color: #aaaaff; background:;}
a.tt:hover span.tooltip{
display:block;
position:absolute;
top:0px; left:0;
padding: 15px 0 0 0;
width:200px;
color: #993300;
text-align: center;
filter: alpha(opacity:90);
KHTMLOpacity: 0.90;
MozOpacity: 0.90;
opacity: 0.90;
}
a.tt:hover span.top{
display: block;
padding: 30px 8px 0;
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjzzCtm-GiltTEGtVHgtravMRGTMnu1S5WAmQVFka7nGERyYQUj1Sk6xK9d9ENV2CnJJ8l7iv9YVZk0Hd7I3hEUaW9XBZWklk1Fb0asb-aMxS6yP2heeiWqzkbA23rqXp9pjZ00DYYFj3F6/) no-repeat top;
}
a.tt:hover span.middle{ /* different middle bg for stretch */
display: block;
padding: 0 8px;
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhyv1a8kmBoeX0DwV0s1ZQrep3hI3eQpKHLESsMelnAfM3NoyAEQfAuJU8YbuEQIplrdm4pq19ydqcG280hyphenhyphen3Fj8wKYbLXo8DX3JU6Sj_gUl83djOJh82SNtEkd3cf6SLXUEHy-DuOshXep/) repeat bottom;
}
a.tt:hover span.bottom{
display: block;
padding:3px 8px 10px;
color: #548912;
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjzzCtm-GiltTEGtVHgtravMRGTMnu1S5WAmQVFka7nGERyYQUj1Sk6xK9d9ENV2CnJJ8l7iv9YVZk0Hd7I3hEUaW9XBZWklk1Fb0asb-aMxS6yP2heeiWqzkbA23rqXp9pjZ00DYYFj3F6/) no-repeat bottom;
}
</style>


4.Now when you add a link use the below structure:

<a href="YOUR-LINK" class="tt">LINK-NAME<span class="tooltip"><span class="top"></span><span class="middle">YOUR-TOOLTIP-MESSAGE</span><span class="bottom"></span></span></a>


Look at the example below.

<a href="http://www.premiumbloggertemplates.com/" class="tt">Premium Blogger Templates<span class="tooltip"><span class="top"></span><span class="middle">Download Free Premium Templates Free</span><span class="bottom"></span></span></a>


It will look like this:

CSS Bubble Tooltips
CSS Bubble Tooltips


source

0 comments:

Post a Comment

 

Support By Blogger