 <p>If you create your layout using Bootstrap grid system it will automatically align the container div to horizontally center, there is no need to any thing. Just follow this code:</p> <pre><code>&lt;div class="container"&gt; &lt;div class="row"&gt; &lt;div class="span8"&gt; &lt;!-- left column --&gt; &lt;/div&gt; &lt;div class="span4"&gt; &lt;!-- right column --&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; </code></pre> <p>Further you can check out this page to know how Bootstrap grids works - <a href="http://www.tutorialrepublic.com/twitter-bootstrap-tutorial/bootstrap-grid-system.php" rel="nofollow">http://www.tutorialrepublic.com/twitter-bootstrap-tutorial/bootstrap-grid-system.php</a></p>