Bootstrap Tutorial - Create a row with span4 span4 span4








The following code shows how to create a row with span4 span4 span4.

Example

<!DOCTYPE html>
<html>
<head>
<script type='text/javascript'
  src='http://code.jquery.com/jquery-1.8.3.js'></script>
<script type='text/javascript'
  src="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.0/js/bootstrap.min.js"></script>
<link rel="stylesheet" type="text/css"
  href="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.0/css/bootstrap-combined.min.css">
<style type='text/css'>
.span4 {<!--   w ww.ja v  a2 s  . co m-->
  background-color: olive;
}
.span12 {
  border: solid 2px black;
}
</style>
</head>
<body>
  <div class="container">
    <div class="row">
      <div class="span12">
        <div class="row">
          <div class="span4">1</div>
          <div class="span4">2</div>
          <div class="span4">3</div>
        </div>
        <!-- end nested row -->
      </div>
      <!-- end span 12 -->
    </div>
    <!-- end row -->
  </div>
  <!-- end container -->
</body>
</html>

Click to view the demo