Bootstrap Tutorial - Create well sidebar-nav based list








The following code shows how to create well sidebar-nav based list.

Example

<!DOCTYPE html>
<html>
<head>
<script type='text/javascript'
  src='http://cdnjs.cloudflare.com/ajax/libs/bonsai/0.4.1/bonsai.min.js'></script>
<link rel="stylesheet" type="text/css"
  href="http://netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css">
<style type='text/css'>
li:after {<!--from w  w w. ja v a 2s .c o m-->
  display: table;
  clear: both;
  content: "";
}
</style>
</head>
<body style='margin:30px'>
  <div class="well sidebar-nav">
    <ul class="list-unstyled">
      <li>File Uploaded</li>
      <li><a href="#">File 1</a>
        <button type="button" class="close" aria-hidden="true">&times;</button></li>
      <li><a href="#">File 2</a>
        <button type="button" class="close" aria-hidden="true">&times;</button></li>
      <li><a href="#">File 3</a>
        <button type="button" class="close" aria-hidden="true">&times;</button></li>
    </ul>
  </div>
</body>
</html>

Click to view the demo