Bootstrap Tutorial - Layout banner with span6








The following code shows how to layout banner with span6.

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'>
#main {<!--from   w  w w.j av a 2  s  .  co  m-->
  background-color: #aaa;
}

p, h2 {
  padding-left: 10px;
}
</style>

</head>
<body>
  <div id="main" class="container" role="main">
    <div class="row">
      <div class="span6">
        <h2>Welcome</h2>
        <p>Hello and welcome to my website.</p>
      </div>
      <div class="span6"><img src='http://placehold.it/600x100'/></div>
    </div>
  </div>
</body>
</html>

Click to view the demo