CSS3 Tooltip

/* Tooltip hover effect for wishlist start */

.wishlist_div .add-to-links a{
    position: relative;
    display: inline-block;
    
}
.wishlist_div .add-to-links a:before {
    visibility: visible;
    content: "ADDED TO WISHLIST";
    font-size: 9px;
    text-transform: none;
    position: absolute;
    width: 108px;
    background-color: #a41103;
    color: #fff;
    text-align: center;
    padding: 10px 0;
    z-index: 1;
    top: 131%;
    right: -216%;
    line-height: 20px;
    transition: opacity 1s;
    font-family: opsemi;
}
.wishlist_div .add-to-links a:after {
    content: "";
    position: absolute;
    top: 13px;
    right: 0px;
    margin-left: 0px;
    border-width: 10px;
    border-style: solid;
    border-color: transparent transparent #a41103 transparent;
   
    
} 
/* Tooltip hover effect for wishlist end */


/*
* if you want to change tooltip small icon different angle.just change this line:

up: border-color: transparent transparent #a41103 transparent;
down: border-color: #e74c3c transparent transparent transparent;
left: border-color:  transparent #a41103 transparent transparent;
left: border-color:  transparent transparent transparent #a41103;

*/

Shown as following example:
tooltrip-

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s