I'm trying to use the popovers from UI Bootstrap in AngularJS: http://angular-ui.github.io/bootstrap/#/popover
<i class="fa fa-question-circle" popover="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur porta libero tincidunt, malesuada tellus vitae, dapibus ex. Ut tristique tristique eros." popover-trigger="mouseenter" popover-placement="right"></i>
It gives me a popover like this:
How can I style change the width of this popover?
For me the following worked
This actually changed the size of the popover white container.
You can achieve it by overriding popover-content class:
UPDATE: You can check this in Chrome: - press F12 - select the magnifier - click on the element to inspect - modify its style
From the docs you can use the
In your style sheet
The reason for setting
max-width
instead ofwidth
is that bootstrap haspopover-max-width
set as 276px.github bootstrap code
Another solution if you have very wide popovers is to allow them to autosize
Just set your css to be like this
The width can be changed easily by overriding the
.popover
:Did you try the popover-append-to-body attribute of the popover component?