.nav-stacked - Vertically stack tabs or pills - HTML CSS Bootstrap Class List

HTML CSS examples for Bootstrap Class List:nav-stacked

Description

.nav-stacked - Vertically stack tabs or pills

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  ww . j  ava2s .c  o  m-->
<body>

<div class="container">
  <h3>Vertical Pills</h3>
  <p>This is a test. This is a test. This is a test.This is a test. This is a test. This is a test.</p>
  <ul class="nav nav-pills nav-stacked">
    <li class="active"><a href="#">Home</a></li>
    <li><a href="#">Menu 1</a></li>
    <li><a href="#">Menu 2</a></li>
    <li><a href="#">Menu 3</a></li>
  </ul>
</div>

</body>
</html>

Related Tutorials