.dl-horizontal - Lines up <dt> and <dd> in <dl> elements side-by-side. - HTML CSS Bootstrap Class List

HTML CSS examples for Bootstrap Class List:dl-horizontal

Description

.dl-horizontal - Lines up <dt> and <dd> in <dl> elements side-by-side.

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
<head>
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
  <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
  <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
</head><!--from  w w w.  j a  va  2s . co  m-->
<body>

<div class="container">
  <h2>Typography</h2>
  <p>This is a test. This is a test. This is a test.</p>
  <dl class="dl-horizontal">
    <dt>CSS</dt>
    <dd>- This is a test. This is a test. This is a test.</dd>
    <dt>HTML</dt>
    <dd>- This is a test. This is a test. This is a test.</dd>
  </dl>
</div>

</body>
</html>

Related Tutorials