Create mini button dropdown

Description

The following code shows how to create mini button dropdown.

Example


<!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 {<!-- ww  w . j  a v  a2  s.com-->
  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>

Click to view the demo





















Home »
  Bootstrap »
    Example »




Accordion
Alert
Auto Complete
Badge
Breadcrum
Button
Carousel
Collapse
Dialog
Dropdown
Form
Icon
Jumbotron
Label
Layout
List
List Group
Media
Navigation Bar
Pager
Page Header
Panel
Paragraph
Pills
Popover
ProgressBar
ScrollSpy
Switch
Tab
Table
Thumnail
Tooltip
Tree
Well