title: How to make a div center align in HTML
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/114543/how-to-horizontally-center-a-div">How to horizontally center a div?</a>  </p>
  </blockquote>
  
  
  
  <p>One simple way to make an object centered in HTML is using  <code>align='center'</code>, but it's not working for a div.</p>
  
  <p>I tried:</p>
  
  <pre><code>style='text-align:center';
  style='left:50%';
  </code></pre>
  
  <p>I even true a center tag</p>
  
  <pre><code>&lt;center&gt;
  </code></pre>
  
  <p>But I can't make my target div to be center.</p>