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?
Bootstrap's interactive components—such as modal dialogs, dropdown menus and custom tooltips—are designed to work for touch, mouse and keyboard users.
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 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.
From Documentation, you can append .tooltip
to another element like (body
).
$('[data-toggle="tooltip"]').tooltip({container: 'body'});
Here is updated Codepen:
From Documentation too, you can set
$('#example').tooltip({ boundary: 'window' })
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With