"Popover with image"
Bootstrap 3.3.0 Snippet by pradeep330

<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script> <script src="//code.jquery.com/jquery-1.11.1.min.js"></script> <!------ Include the above in your HEAD tag ----------> <div class="container"> <div class="row"> <div class="col-md-12"> <div class="padding300"> <button type="button" class="btn btn-pophover" data-toggle="popover" data-placement="left"> <span class="icon glyphicon glyphicon-heart"></span> <span class="">555/-</span> </button> <button type="button" class="btn btn-pophover" data-toggle="popover" data-placement="top"> <span class="icon glyphicon glyphicon-heart"></span> <span class="">555/-</span> </button> <button type="button" class="btn btn-pophover" data-toggle="popover" data-placement="bottom"> <span class="icon glyphicon glyphicon-heart"></span> <span class="">555/-</span> </button> <button type="button" class="btn btn-pophover" data-toggle="popover" data-placement="right"> <span class="icon glyphicon glyphicon-heart"></span> <span class="">555/-</span> </button> </div> </div> </div> </div>
.padding300{padding:300px} .btn-pophover { position: relative;background: #fff;border: 1px solid #ccc;margin: 10px 10px 10px 50px;} .btn-pophover:hover { background: #0054FF; color:#fff} .btn-pophover:hover .icon{ background: #c5c92b; color:#fff;border: 1px solid #c5c92b} .btn-pophover .icon {position: absolute;background: #fff;border: 1px solid #0054FF;border-radius: 50%;padding: 11px;font-size: 28px;text-align: center;left: -45px; top: -10px;color: #c5c92b;}
$(document).ready(function(){ $('[data-toggle="popover"]').popover({ trigger : 'hover', html : true, content : '<div class="media"><a href="#" class="pull-left"><img src="http://websitedesigntamilnadu.com/include/extras/websitedesigntamilnaduAdvt01.jpg" class="img-responsive" alt="websitedesigntamilnadu"></a><div class="media-body"></br><h4 class="media-heading">WEST Web</h4><p>Excellent Bootstrap popover! I really love it.</p></div></div>' }); });

Related: See More


Questions / Comments: