title: CSS Getting The Article Center
body: <p>My goal is to get the article in the middle of the leftnav and rightnav. My current syntax is allowing for the leftnav and aside to "smash" into one another. I've added the margin-left and padding left to my article and that does not seem to work. How would I get the article in the center of the page without "smashing" into the leftnav? Thanks everyone.</p>
  
  <p>CSS </p>
  
  <pre><code>/* CSS Document */
  
  body{
   background-color:#9F6;
  }
  
  section{
   width:960px;
   /*padding:15px;*/
  }
  
  header{
   height:150px;
   outline:#000 dotted;
  }
  
  nav{
   position:relative;
   outline:#000 dotted;
  }
  
  nav ul{
   padding:15px;
  }
  
  nav ul li{
   /* Moves the nav in a horizontal fashion */    
   display:inline;
  }
  
  nav ul li a{
   list-style-type:none;
   text-decoration:none;
   text-transform:capitalize;
   padding:15px;
  }
  
  nav ul li a:hover{
   background-color:#F00;
   color:#0FF;
  }
  
  #leftnav{
   float:left;    
   width:160px;
   outline:#000 dotted:
   /*margin-right:15px; */
   /*padding:15px;*/
   /*padding-right:2cm;*/
  }
  
  #rightnav{
   float:right;   
   width:160px;
   outline:#000 dotted:
  }
  
  aside, article{
   min-height: 550px;
   /*background-color: #F96;*/
   outline:#000 dotted;
   /*padding: 1px;*/
  }   
  
  article{
   width:750px;
   /*margin-left:15px;*/
   /*padding-left:65px;*/
  }
  
  footer{
   width:960px;
   outline:#000 dotted;
   margin-top:15px;
   text-align:center;
  }
  </code></pre>
  
  <p>HTML</p>
  
  <pre><code>&lt;!doctype html&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;meta charset="utf-8"&gt;
  &lt;link rel="stylesheet" type="text/css" href="another-css.css"&gt;
  &lt;title&gt;Another Test&lt;/title&gt;
  &lt;/head&gt;
  
  &lt;body&gt;
      &lt;section&gt;
          &lt;header&gt;
           &lt;h3&gt;This Is The Header&lt;/h3&gt;
          &lt;/header&gt;
  
          &lt;nav&gt;
              &lt;ul&gt;
                  &lt;li&gt;&lt;a href="#"&gt;Home&lt;/a&gt;&lt;/li&gt;
                  &lt;li&gt;&lt;a href="#"&gt;Cars&lt;/a&gt;&lt;/li&gt;
                  &lt;li&gt;&lt;a href="#"&gt;About Us&lt;/a&gt;&lt;/li&gt;
                  &lt;li&gt;&lt;a href="#"&gt;Contact us&lt;/a&gt;&lt;/li&gt;
              &lt;/ul&gt;
          &lt;/nav&gt;
  
          &lt;aside id="leftnav"&gt;
          aside left
          &lt;/aside&gt;
  
          &lt;aside id="rightnav"&gt;
          aside right
          &lt;/aside&gt;
  
          &lt;article&gt;
          article
          &lt;/article&gt;
  
          &lt;footer&gt;
          Copyright 2013
          &lt;/footer&gt;
  
      &lt;/section&gt;
  &lt;/body&gt;
  
  &lt;/html&gt;
  </code></pre>