Bootstrap Tutorial - Create fluid layout with span3








The following code shows how to create fluid layout with span3.

Example

<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css"
  href="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.1/css/bootstrap-combined.min.css">
<script type='text/javascript'
  src="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.1/js/bootstrap.min.js"></script>
<style type='text/css'>
.mobile-two h3 {<!--  w w w  . ja v a 2s.  com-->
  min-height: 120px;
}
</style>
</head>
<body>
  <div class="hero-unit">
    <h1>Opening This Week!</h1>
    <div class="row-fluid">
      <div class="span3 mobile-two">
        <h3>The Incredible Burt Wonderstone</h3>
        <img src="http://placehold.it/80x50" />
      </div>
      <div class="span3 mobile-two">
        <h3>test small</h3>
        <img src="http://placehold.it/80x50" />
      </div>
      <div class="span3 mobile-two">
        <h3>The Incredible Burt Wonderstone</h3>
        <img src="http://placehold.it/80x50" />
      </div>
      <div class="span3 mobile-two">
        <h3>The Incredible Burt Wonderstone</h3>
        <img src="http://placehold.it/80x50" />
      </div>
      <div class="span3 mobile-two">
        <h3>The Incredible Burt Wonderstone</h3>
        <img src="http://placehold.it/80x50" />
      </div>
      <div class="span3 mobile-two">
        <h3>The Incredible Burt Wonderstone</h3>
        <img src="http://placehold.it/80x50" />
      </div>
      <div class="span3 mobile-two">
        <h3>The Incredible Burt Wonderstone</h3>
        <img src="http://placehold.it/80x50" />
      </div>
      <div class="span3 mobile-two">
        <h3>The Incredible Burt Wonderstone</h3>
        <img src="http://placehold.it/80x50" />
      </div>
      <div class="span3 mobile-two">
        <h3>The Incredible Burt Wonderstone</h3>
        <img src="http://placehold.it/80x50" />
      </div>
      <div class="span3 mobile-two">
        <h3>The Incredible Burt Wonderstone</h3>
        <img src="http://placehold.it/80x50" />
      </div>
      <div class="span3 mobile-two">
        <h3>The Incredible Burt Wonderstone</h3>
        <img src="http://placehold.it/80x50" />
      </div>
    </div>
    <p>These movies open this Friday!</p>
    <p>
      <a class="btn btn-primary btn-small" href="#coming-soon">See
        Showtimes &raquo;</a>
    </p>
  </div>
</body>
</html>

Click to view the demo