1.

How to position tooltip in the bottom in Bootstrap?

Answer»

To POSITION tooltip in Bootstrap, use the data-placement attribute.

To position tooltip in the bottom in Bootstrap, use the date-placement attribute with the FOLLOWING value:

data-placement="bottom"

The above will be used as:

<a href="#" data-toggle="tooltip" data-placement="bottom" title="This is a tooltip!">Keep mouse cursor here</a>

The following is how you can position tooltip in the bottom in Bootstrap:

<!DOCTYPE html> <html lang="en"> <HEAD>   <title>Bootstrap Demo</title>   <META charset="utf-8">   <meta name="viewport" content="width=device-width, initial-scale=1">   <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css">   <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>   <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js"></script>   <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js"></script> </head> <body> <div CLASS="container-fluid">   <h3>Tooltip Example</h3>   <p>Tooltip is in the bottom...</p><br>   <a href="#" data-toggle="tooltip" data-placement="bottom" title="This is a tooltip!">Keep mouse cursor here</a> </div> <script> $(document).ready(function(){   $('[data-toggle="tooltip"]').tooltip();   }); </script> </body> </html>

The following is the output that displays tooltip in the bottom:



Discussion

No Comment Found