Layout main content before sidebars

Description

The following code shows how to layout main content before sidebars.

Example


<!DOCTYPE html>
<html>
<head>
<link
href="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.1/css/bootstrap-combined.min.css"
rel="stylesheet">
<link
href="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.1/css/bootstrap-responsive.min.css"
rel="stylesheet">
<style type='text/css'>
.span6 {<!-- www.  java2 s . co m-->
  background-color: pink;
}
</style>
</head>
<body>
  <div class="container">
    <div class="row">
      <div class="span9">
        <div class="row">
          <div class="span6 pull-right">main content</div>
          <div class="span3">left bar</div>
        </div>
        <!-- end nested row -->
      </div>
      <!-- end span9 -->
      <div class="span3">right bar</div>
    </div>
    <!-- end parent row-->
  </div>
  <!-- end container -->
</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