Bootstrap Tutorial - Create nested column layout








The following code shows how to create nested column layout.

Example

<!--<!--   ww  w  .  j  a  v  a 2s  .com-->
revised from http://stackoverflow.com/questions/14418998/bootstrap-alignment-issues
-->
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css"
  href="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.2.2/css/bootstrap-combined.min.css">
<style type='text/css'>
.b {
  border: 1px solid #ccc;
  padding: 10px;
}
</style>
</head>
<body>
  
  <div class="container-fluid" style="margin-top: 20px;">
    <div class="row-fluid">
      <div class="span9 b">
        <div class="row-fluid">
          <div class="span8 b">Highlighted Comic</div>
          <div class="span4 b">Latest Artwork</div>
        </div>
        <div class="row-fluid">
          <div class="span8 b">Latest</div>
          <div class="span4 b">Hot</div>
        </div>
      </div>
      <div class="span3 b" style="height: 300px;">Search</div>
    </div>
  </div>
</body>
</html>

Click to view the demo