Create a row with span4 span4 span4

Description

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 {<!--from  w  w  w.jav a2s .c om-->
  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





















Home »
  Bootstrap »
    Example »




Accordion
Alert
Auto Complete
Badge
Breadcrum
Button
Carousel
Collapse
Dialog
Dropdown
Form
Icon
Jumbotron
Label
Layout
List
List Group
Media
Navigation Bar
Pager
Page Header
Panel
Paragraph
Pills
Popover
ProgressBar
ScrollSpy
Switch
Tab
Table
Thumnail
Tooltip
Tree
Well