JSFiddle - React, Tailwind, and code Playground
HTML
<a class='c-tool' rel="tooltip" href="" title='
<div class="toltip-div">
<div class="toltip-top">
<div class="toptip-close"><a href="#"><img src="images/toptip-close.png" width="13" height="13" /></a></div>
<div class="toltip-area">You can set change</div>
</div>
<div class="toltip-arrow"></div>
</div>
'>
ThemeRoller</a>
CSS
.toltip-div {
height: 144px;
margin: 0 auto;
padding: 0;
width: 280px;
}
.c-tool {
top:100px;
left:350px;
position:relative;
}
.toltip-top {
background-color: #FAF9DD;
/*border: 1px solid #D8D8D8;*/
float: left;
height: 153px;
padding: 0;
width: 258px;
}
.toltip-area {
color: #7F7F7F;
float: left;
font-family:'open_sanssemibold_italic';
font-size: 15px;
height: 110px;
margin: 0 auto;
padding: 18px 0 0 32px;
width: 157px;
}
.toptip-close {
float: right;
height: 13px;
margin: 9px 8px 0 0;
width: 13px;
}
.ui-tooltip, .arrow:after {
background: #FAF9DD;
}
.ui-tooltip {
/*padding: 10px 20px;
color: white;
border-radius: 20px;
font: bold 14px"Helvetica Neue", Sans-Serif;
text-transform: uppercase;
box-shadow: 0 0 7px black;
*/
}
.arrow {
bottom: -16px;
height: 10px;
position: absolute;
right: -13px;
top: 50%;
width: 15px;
}
.arrow.top {
/*top: -16px;
bottom: auto;*/
}
.arrow.left {
left: 20%;
}
.arrow:after {
background: none repeat scroll 0 0 rgba(0, 0, 0, 0);
border-bottom: 10px solid rgba(0, 0, 0, 0);
border-left: 13px solid #FAF9DD;
border-top: 10px solid rgba(0, 0, 0, 0);
bottom: 0;
box-shadow: 6px 5px 9px -9px #000000;
content:" ";
position: absolute;
right: 0;
}
.arrow.top:after {
/* bottom: -20px;
top: auto;*/
}
JavaScript
$(function () {
$.widget("ui.tooltip", $.ui.tooltip, {
options: {
content: function () {
return $(this).prop('title');
}
}
});
$('[rel=tooltip]').tooltip({
position: {
my: "center bottom+90",
at: "left-170",
using: function (position, feedback) {
$(this).css(position);
$("<div>")
.addClass("arrow")
.addClass(feedback.vertical)
.addClass(feedback.horizontal)
.appendTo(this);
}
}
});
});