The following code shows how to create mini button dropdown.
<!DOCTYPE html>
<html>
<head>
<script type='text/javascript'
src='http://code.jquery.com/jquery-1.8.3.js'></script>
<link rel="stylesheet" type="text/css"
href="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.1.1/css/bootstrap-combined.min.css">
<script type='text/javascript'
src="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.1.1/js/bootstrap.min.js"></script>
<style type='text/css'>
.buttonafter {<!--from w ww. j av a2s . co m-->
padding-top: 4px;
padding-left: 8px;
}
</style>
</head>
<body>
<table>
<tr>
<td class="textbefore">
<h1>Some title</h1>
</td>
<td class="buttonafter"><span class="btn-group">
<button class="btn btn-mini">Edit</button>
<button class="btn btn-mini dropdown-toggle" data-toggle="dropdown">
<span class="caret"></span>
</button>
<ul class="dropdown-menu">
<li><a href="#">...my menus...</a></li>
</ul>
</span></td>
</tr>
</table>
</body>
</html>