The following code shows how to control tooltip placement.
<!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 w w.j a v a 2 s . c om-->
$(".tooltip-examples a").tooltip({
placement : 'top'
});
});
</script>
<style type="text/css">
.bs-example {
margin: 100px 50px;
}
</style>
</head>
<body>
<div class="bs-example">
<ul class="tooltip-examples list-inline">
<li><a href="#" data-toggle="tooltip"
data-original-title="Default tooltip">Tooltip</a></li>
<li><a href="#" data-toggle="tooltip"
data-original-title="Another tooltip">Another tooltip</a></li>
<li><a href="#" data-toggle="tooltip"
data-original-title="A much longer tooltip to demonstrate the max-width of the Bootstrp tooltip.">Large
tooltip</a></li>
<li><a href="#" data-toggle="tooltip"
data-original-title="The last tip!">Last tooltip</a></li>
</ul>
</div>
</body>
</html>