Bootstrap Tutorial - Offset to indent columns








The following code shows how to offset to indent columns.

Example

<!DOCTYPE html>
<html lang="en">
<head>
<link rel="stylesheet"
  href="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
<link rel="stylesheet"
  href="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap-theme.min.css">
<script
  src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script
  src="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
<!-- w  w  w. j a v a 2  s  .  c o  m-->
</head>
<body>
  <div class="container">
      <div class="row">
          <div class="col-xs-6 col-xs-offset-3 col1">
              <h1>Hello Learnable!</h1>
          </div>
      </div>
  </div>
</body>
</html>

Click to view the demo