Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Bootstrap tooltip : overflow?

My codepen

I do not know how to get my tooltip out of the container. I was forced to put an overflow: hidden so that the ripple effect does not come out of the block, but the tooltip is also impacted.

I tried this code but it did not work:

.tooltip { overflow: visible !important)

An idea?

like image 360
Fyl Avatar asked Jan 03 '17 08:01

Fyl


People also ask

Are Bootstrap tooltips accessible?

Bootstrap's interactive components—such as modal dialogs, dropdown menus and custom tooltips—are designed to work for touch, mouse and keyboard users.

What is the difference between popover and tooltip?

Tooltip: use tooltips to show a short text to respondents when they hover over a word or icon. Popover: use popovers to show a longer text, or when you want to have a link to an external web page. It is shown when the respondent clicks on a word or icon.

How do I change the tooltip position in bootstrap?

How to position the tooltip - auto | top | bottom | left | right. When auto is specified, it will dynamically reorient the tooltip. When a function is used to determine the placement, it is called with the tooltip DOM node as its first argument and the triggering element DOM node as its second.


2 Answers

From Documentation, you can append .tooltip to another element like (body).

$('[data-toggle="tooltip"]').tooltip({container: 'body'});

Here is updated Codepen:

like image 165
Mohammad Usman Avatar answered Oct 03 '22 17:10

Mohammad Usman


From Documentation too, you can set

$('#example').tooltip({ boundary: 'window' })
like image 36
George Avatar answered Oct 03 '22 17:10

George