How to auto-resist a popover
Here is my violin. http://jsfiddle.net/sNrLQ/1/
I want the pop-out to be automatically dependent on its content. Also I am trying to give it a max width of 400px.
My css
.popover2{display:block!important;width: 400px !important;}
And my html
<div class="popover popover2 left"><div class="arrow"></div><div class="popover-content"><p>tellus. Donec dui tortor, commodo nec laoreet ac, </p></div></div>
+3
source to share
4 answers
I hope this is helpful
var $btn = $("#my_btn")
.popover()
.on("show.bs.popover", function(e){
p.data("bs.popover").tip().css({"max-width": "500px"});
});
0
source to share