Awesome Tooltips
The CSS
.tooltip-no-link{ cursor: default;color:#ffffff;} .tooltip-inner { max-width: 400px; padding: 3px 8px; color: #000; text-align: left; background-color: antiquewhite; border:#000 1px solid; border-radius: 4px; cursor:pointer; } .tooltip { display: block; cursor: pointer; /*box-shadow: rgba(0, 0, 0, 0.3) 0 2px 10px;*/ } .tooltip.bottom { padding: 0; margin-top: 3px; }
The Jquery
<script> $(document).ready(function(){ $('[data-toggle="tooltip"]').tooltip(); }); </script>
The HTML
<a class="tooltip-no-link" data-html="true" data-toggle="tooltip" data-placement="right" title="@db.DbConnection">@db.DbName</a>
Comments