title: How to center absolute div horizontally using CSS?
body: <p>I've a div and want it to be centered horizontally - although I'm giving it <code>margin:0 auto;</code> it's not centered...</p>
  
  <pre><code>.container {
      position: absolute;
      top: 15px;
      z-index: 2;
      width:40%;
      max-width: 960px;
      min-width: 600px;
      height: 60px;
      overflow: hidden;
      background: #fff; 
      margin:0 auto;
  }
  </code></pre>