The following code shows how to popover Placement in four directions.
<!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(){<!--from ww w . j a va2 s .co m-->
$(".popover-top").popover({
placement : 'top'
});
$(".popover-right").popover({
placement : 'right'
});
$(".popover-bottom").popover({
placement : 'bottom'
});
$(".popover-left").popover({
placement : 'left'
});
});
</script>
<style type="text/css">
.bs-example {
margin: 100px 20px;
}
</style>
</head>
<body>
<div class="bs-example">
<ul class="list-inline">
<li><a href="#" class="btn btn-primary popover-top"
data-toggle="popover" title="Popover title"
data-content="Default popover">Popover on top</a></li>
<li><a href="#" class="btn btn-success popover-right"
data-toggle="popover" title="Popover title"
data-content="Popover on right.">Popover on right</a></li>
<li><a href="#" class="btn btn-info popover-bottom"
data-toggle="popover" title="Popover title"
data-content="Popover on bottom.">Popover on bottom</a></li>
<li><a href="#" class="btn btn-warning popover-left"
data-toggle="popover" title="Popover title"
data-content="Popover on left.">Popover on left</a></li>
</ul>
</div>
</body>
</html>