jquery - Bootstrap Popover on Floated Element -


i cannot seem figure out how put popover on element floating (in case left)

whenever apply popover goes top-left of parent container when remove float css, popover works fine.

demo: bootply

html

<a class="popper" href="#" data-toggle="popover" data-trigger="hover" data-placement="right" data-html="true" data-content="test textbox">     <img class="avatar" src="http://www.polyvore.com/cgi/img-thing?.out=jpg&amp;size=l&amp;tid=51287906" height="60" width="60"> </a> 

script

$(function ()     {     $('.popper').popover({     trigger: 'click',   }); }); 

css

.avatar {   width: 60px;   height: 60px;   margin: 10px;   border:2px solid black;   border-radius: 500px;   -webkit-border-radius: 500px;   -moz-border-radius: 500px;   float:left;   display: inline-block; } 

any appreciated!

so float popper

.popper{float:left;} 

bootply


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

jsf - How to ajax update an item in the footer of a PrimeFaces dataTable? -

jquery - Keeping Kendo Datepicker in min/max range -