title: How to center a header image
body: <p>I have a problem. The answers to other people questions didn't solve my problem.</p>
  
  <p>It's about image in my header, here's the code:</p>
  
  <p>HTML</p>
  
  <pre><code>&lt;div id="site"&gt;
  
      &lt;div id="header"&gt;
          &lt;img class="center" src="http://i.imgur.com/jfDhpP5.png"/&gt;    
      &lt;/div&gt;
  
      &lt;div id="mainNav"&gt;
          &lt;li&gt;&lt;a href="#"&gt;one&lt;/a&gt;&lt;/li&gt;
          &lt;li&gt;&lt;a href="#"&gt;two&lt;/a&gt;&lt;/li&gt;
          &lt;li&gt;&lt;a href="#"&gt;three&lt;/a&gt;&lt;/li&gt;
          &lt;li&gt;&lt;a href="#"&gt;four&lt;/a&gt;&lt;/li&gt;
      &lt;/div&gt;
  
  &lt;/div&gt;
  </code></pre>
  
  <p>CSS</p>
  
  <pre><code>#container{
      width: 1000px;
      margin: 1em auto;
  }
  
  #header{
      display: block;
      width: 1000px;
      margin: 0 auto;
  }
  
  body{    
      background-color: grey;
      color: black;
      font-family: sans-serif;
  }
  
  img.center{
      text-align:center;
      margin: 0 auto;
      padding:0px;
  }
  </code></pre>
  
  <p>I also try this:</p>
  
  <pre><code>div#pictures {
    text-align: center;
  }
  </code></pre>
  
  <p>also not working... checked in firefox and IE, the newest versions.... o.O</p>
  
  <p>Please help!</p>