Bootstrap Tutorial - Create sidebar navigation inside well with closable icon








The following code shows how to create sidebar navigation inside well with closable icon.

Example

<!-- w w w  .  ja v a 2 s  .c o m-->
<!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 {
  height: 21px;
}
</style>
</head>
<body>
  <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