Layout banner with span6

Description

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  www  .java  2 s .c o 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





















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