Bootstrap Tooltips

The Tooltip is a popover that appears when you hover the mouse cursor. Learn how to create a tooltip in Bootstrap and how to position a tooltip, with the following:

  • Set the position of the tooltip on top of an element
  • Set the position of the tooltip on the bottom of an element
  • Set the position of the tooltip on the left of an element
  • Set the position of the tooltip on the right of an element
To create a Tooltip, use the tooltip() with the following attribute:

To Position Tooltip in Bootstrap, use the data-bs-placement attribute:

  • data-bs-placement=”top”: Set the position of the tooltip on the top of an element:
  • data-bs-placement=”bottom”: Set the position of the tooltip on the bottom of an element
  • data-bs-placement=”left”: Set the position of the tooltip on the left of an element
  • data-bs-placement=”right”: Set the position of the tooltip on the right of an element

Example – Bootstrap Tooltips

Let us now see an example to create tooltips in Bootstrap:

Output

Bootstrap Tooltips Example

Now, hover over the text “Please hover over me“. On hovering, the tooltip is visible with the text, “First Tooltip“:

Bootstrap Tooltips Example

Video Tutorial – Bootstrap Tooltips

The following is the complete video tutorial to learn how to work with Tooltips in Bootstrap:


If you liked the tutorial, spread the word and share the link and our website Studyopedia with others.


Read More:

Bootstrap Images
Bootstrap Cards
Studyopedia Editorial Staff
Studyopedia Editorial Staff
[email protected]

We work to create programming tutorials for all.

No Comments

Post A Comment

Discover more from Studyopedia

Subscribe now to keep reading and get access to the full archive.

Continue reading