title: Center Adsense banner inside a DIV
body: <p>I have in my website a space for adsense banner.</p>
  <p>I have customized space with max-height and max-width for force system to display only banner that are max 940px width and 180px height. Now i need to center banner.</p>
  <p>I tried with <code>align-items: center</code> and <code>justify-content: center</code>.
  I also tried with <code>margin-left: auto</code> and <code>margin-right: auto</code>.
  But the banner has still displayed at left at margin of page.</p>
  <h2>HTML</h2>
  <pre><code>&lt;div id=&quot;footer_ad&quot;&gt;
     &lt;div style=&quot;max-height:180; max-width:940; margin-left: auto; margin-right: auto&quot;&gt;
         &lt;?php echo $footer_ad; ?&gt;
     &lt;/div&gt;
     &lt;p&gt;&amp;nbsp;&lt;/p&gt;
  &lt;/div&gt;
  </code></pre>
  <p>I think problem is with parent div's styling</p>