Bootstrap Tutorial - Put text block in drop down








The following code shows how to put text block in drop down.

Example

<!DOCTYPE html>
<html>
<head>
<script type='text/javascript'
  src='http://code.jquery.com/jquery-1.9.1.js'></script>
<link rel="stylesheet" type="text/css"
  href="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap-combined.min.css">
<script type='text/javascript'
  src="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/js/bootstrap.min.js"></script>
<style type='text/css'>
.dropdown-menu {<!-- w ww.  ja  v a2s .c om-->
  width: 300px;
  white-space: normal;
}
</style>
</head>
<body style='margin:30px'>
  <div class="btn-group">
    <a class="btn dropdown-toggle btn-mini" data-toggle="dropdown"
      href="#"> Action <span class="caret"></span>
    </a>
    <div class="dropdown-menu">
      <div>Long text goes here.Long text goes here.Long text goes
        here.Long text goes here.Long text goes here.Long text goes here.</div>
    </div>
  </div>
</body>
</html>

Click to view the demo