title: How to define CellPadding in GridView in ASP.NET
body: <ul>
  <li>I autoformat a GridView in ASP.NET.</li>
  <li><p>It looks nice but the headers all run together like this:</p>
  
  <p><strong>idfirstNamelastNameage</strong></p></li>
  <li><p>I set CellPadding="5" but it does nothing.</p></li>
  </ul>
  
  <p>How can I set the cell padding of the headers and all cells?</p>
  
  <p>A D D E N D U M :</p>
  
  <p>Thanks Andrew, I fixed it with this. Works in Firefox and Explorer 7:</p>
  
  <pre><code>.gridview2 tr td
  {
      padding: 5px;
      border: 1px solid #ddd;
  }
  .gridview2 tr th
  {
      padding: 5px;
  }
  </code></pre>