Bootstrap Tutorial - Popover up








The following code shows how to popover up.

Example

<!DOCTYPE html>
<html lang="en">
<head>
<link rel="stylesheet"
  href="http://netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap.min.css">
<link rel="stylesheet"
  href="http://netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap-theme.min.css">
<script type="text/javascript"
  src="http://code.jquery.com/jquery.min.js"></script>
<script
  src="http://netdna.bootstrapcdn.com/bootstrap/3.0.3/js/bootstrap.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){<!-- w ww. j a  va2s. c  om-->
    $(".popover-examples a").popover({
        placement : 'top'
    });
});
</script>
<style type="text/css">
.bs-example {
  margin: 150px 50px;
}
</style>
</head>
<body>
  <div class="bs-example">
    <ul class="popover-examples list-inline">
      <li><a href="#" class="btn btn-primary" data-toggle="popover"
        title="Popover title" data-content="Default popover">Popover</a></li>
      <li><a href="#" class="btn btn-success" data-toggle="popover"
        title="Popover title" data-content="Another popover">Another
          popover</a></li>
      <li><a href="#" class="btn btn-info" data-toggle="popover"
        title="Popover title"
        data-content="A larger popover to demonstrate the max-width of the Bootstrap popover.">Large
          popover</a></li>
      <li><a href="#" class="btn btn-warning" data-toggle="popover"
        title="Popover title" data-content="The last tip!">Last popover</a></li>
    </ul>
  </div>
</body>
</html>

Click to view the demo