title: How to put drop down list and table element at the center of page?
body: <p>I used <code>margin:0 auto</code> on div as well as table but the drop down list and table are displayed on the left side of browser (in Chrome and Firefox). In IE the table comes at the horizontal center of page but not the drop down list.</p>
  
  <p>Here's the code:</p>
  
  <pre><code> &lt;div &gt;
          &lt;select id="ddl" onChange="showTA()" style="margin:0 auto"&gt;
              &lt;option value="none"&gt;Select Product&lt;/option&gt;
              &lt;option value="ib"&gt;IB&lt;/option&gt;
              &lt;option value="rs"&gt;RS&lt;/option&gt;
              &lt;option value="bp"&gt;BP&lt;/option&gt;
          &lt;/select&gt;
    &lt;/div&gt;
    &lt;div&gt;
          &lt;table id="selectBox" class="tables" 
                      style="display:none; margin:0 auto;"&gt;
                  &lt;tr class="header_rows"&gt;
                      &lt;th&gt;ID&lt;/th&gt;
                      &lt;th&gt;HostOS&lt;/th&gt;
                      &lt;th&gt;BuildID&lt;/th&gt;
                      &lt;th&gt;Description&lt;/th&gt;
                      &lt;th&gt;User&lt;/th&gt;
                      &lt;th&gt;StartTime&lt;/th&gt;
                  &lt;/tr&gt;
                  &lt;tr class="data_rows" ng-repeat='b in t1'&gt;
                      &lt;td class="tds"&gt;{{b.ID}}&lt;/td&gt;
                      &lt;td class="tds"&gt;{{b.HostOS}}&lt;/td&gt;
                      &lt;td class="tds"&gt;{{b.BuildID}}&lt;/td&gt;
                      &lt;td class="tds"&gt;{{b.Description}}&lt;/td&gt;
                      &lt;td class="tds"&gt;{{b.User}}&lt;/td&gt;
                      &lt;td class="tds"&gt;{{b.StartTime}}&lt;/td&gt;
                  &lt;/tr&gt;
          &lt;/table&gt;
    &lt;/div&gt;
  </code></pre>
  
  <p>What I want is that the <code>ddl</code> as well as <code>table</code> should always be at the center of page even when the browser's size changes.( I need a css solution. If not possible then I'll accept Javascript as well), and I don't want to use <code>&lt;center&gt;</code> tag.</p>