Toggle navigation
☰
Home
HTML
CSS
Scripting
Database
<!DOCTYPE html> <title>My Example</title> <!-- Bootstrap CSS --> <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css"> <div class="container-fluid"> <div style="text-align:center"> <button type="button" class="btn btn-primary" data-toggle="popover" data-placement="right" data-content="Popover content goes here..." style="margin:40px;"> Click me </button> <button type="button" class="btn btn-primary" data-toggle="popover" data-placement="bottom" data-content="Popover content goes here..." style="margin:40px;"> Click me </button> <button type="button" class="btn btn-primary" data-toggle="popover" data-placement="top" data-content="Popover content goes here..." style="margin:40px;"> Click me </button> <button type="button" class="btn btn-primary" data-toggle="popover" data-placement="left" data-content="Popover content goes here..." style="margin:40px;"> Click me </button> </div> </div> <!-- jQuery library --> <script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script> <!-- Bootstrap JS --> <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script> <!-- Initialize Bootstrap functionality --> <script> // Initialize tooltip component $(function () { $('[data-toggle="tooltip"]').tooltip() }) // Initialize popover component $(function () { $('[data-toggle="popover"]').popover() }) </script>