Thursday, November 17, 2011

How To Create Bubble Tooltip in blogspot / blogger

How To Create Bubble Tooltip in blogspot / blogger:

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

2.Scroll down to where you see tag .

3.Copy below code and paste it just before the 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/AVvXsEh8eoB-qkhdpeEPpgL5euKiN89dZ47LNCk_t7dJ4EfrigmNAa7JDMbs9X0E11GYfNT00lKXupbZGD8YcQQS6wYHmU_msqdVmLkwZ5Hwi-1KNBvQmprpjmua5ldNiKrdCvhAR9oUlupMDMQT/) 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/AVvXsEg5V-TeMDmVO6hU_IoIrffEPhyki9yJGWrlm9-QxngIflaR0618GUOVJyzrTFhr7CVFiKvEToNlC1qw3MFKknKDtBKO4omGrV_A11G2Txixrfqpb251yVoafGx0m0JaleN8-AvsFjtYPhaV/) repeat bottom;
}
a.tt:hover span.bottom{
display: block;
padding:3px 8px 10px;
color: #548912;
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh8eoB-qkhdpeEPpgL5euKiN89dZ47LNCk_t7dJ4EfrigmNAa7JDMbs9X0E11GYfNT00lKXupbZGD8YcQQS6wYHmU_msqdVmLkwZ5Hwi-1KNBvQmprpjmua5ldNiKrdCvhAR9oUlupMDMQT/) 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>


5. 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

No comments:

Post a Comment