The following code shows how to create justified button groups.
<!DOCTYPE html>
<html>
<head>
<script type='text/javascript'
src='http://code.jquery.com/jquery-git2.js'></script>
<link rel="stylesheet" type="text/css"
href="http://getbootstrap.com/assets/css/docs.css">
<link rel="stylesheet" type="text/css"
href="http://netdna.bootstrapcdn.com/bootstrap/3.0.0-rc1/css/bootstrap.min.css">
<script type='text/javascript'
src="http://netdna.bootstrapcdn.com/bootstrap/3.0.0-rc1/js/bootstrap.min.js"></script>
</head><!--from w ww. j a v a 2 s.c om-->
<body style='margin:30px'>
<h3 id="btn-groups-justified">Justified button groups</h3>
<div class="btn-group btn-group-justified">
<a class="btn btn-success" href="#">Left</a> <a class="btn btn-danger"
href="#">Middle</a>
<ul class="btn btn-warning" href="#">Right
</ul>
</div>
</body>
</html>