Bootstrap Tutorial - Put inline list inside a well








The following code shows how to put inline list inside a well.

Example

<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
@import url('http://getbootstrap.com/2.3.2/assets/css/bootstrap.css');
.inline li {<!--from  www.j  a v a2s.c  o m-->
  width: 18% !important;
  background: #FFF !important;
}
.inline li: hover {
  background: #A5A5A5 !important;
}
</style>
</head>
<body style='margin:30px'>
  <div class="well">
    <ul class="inline">
      <li>1</li>
      <li>2</li>
      <li>3</li>
      <li>3</li>
      <li>3</li>
    </ul>
  </div>
</body>
</html>

Click to view the demo