Bootstrap Tutorial - Style definition list








The following code shows how to style definition list.

Example

<!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><!--   w w  w  .j  av a 2 s . c o m-->
<body>
  <div class="container">
    <dl>
      <dt>Horizontal form</dt>
      <dd>
        Use Bootstrap's predefined grid classes to align labels and groups
        of form controls in a horizontal layout by adding
        <code>.form-horizontal</code>
        to the form. Doing so changes
        <code>.form-group</code>
        s to behave as grid rows, so no need for
        <code>.row</code>
        .
      </dd>
    </dl>
  </div>
</body>
</html>

Click to view the demo