Bootstrap Tutorial - Layout form control with span3








The following code shows how to layout form control with span3.

Example

<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css"
  href="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap-combined.min.css">
<script type='text/javascript'
  src="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/js/bootstrap.min.js"></script>
</head><!--from  w  ww .jav  a2s.  c o  m-->
<body>
  <div class="container-fluid" style="background-color: white;">
    <div class="row-fluid">
      <div class="span3">
        <label>test</label> <input type="text" class="input-block-level">
      </div>
      <div class="span3">
        <label>test</label> <input type="text" class="input-block-level">
      </div>
      <div class="span3">
        <label>test</label> <input type="text" class="input-block-level">
      </div>
      <div class="span3">
        <label>test</label> <input type="text" class="input-block-level">
      </div>
    </div>
  </div>
</body>
</html>

Click to view the demo