title: How to align a div inside td element using CSS class
body: <p>It is working with this way</p>
  
  <pre><code>&lt;td align="center"&gt;
  </code></pre>
  
  <p>But I want to use CSS class.</p>
  
  <p>I defined class like this way but no luck</p>
  
  <pre><code>td
  {
      vertical-align: middle;
      text-align: center;
      margin-left: auto;
      margin-right: auto;
      align: center;
  }
  </code></pre>
  
  <p>Vertical align is working and text align is working for text. But it does not align div inside td with this way. I want to align div inside td.</p>