title: How to align PanelGrid to center? JSF-Primefaces
body: <p>I know that there are many questions about this issue, but nothing worked for me properly. </p>
  
  <p>I need to align my PanelGrid to center(horizontal).</p>
  
  <p><strong>this is my panelgrid</strong></p>
  
  <pre><code>&lt;p:panelGrid styleClass="panelGridCenter"&gt;
  </code></pre>
  
  <p><strong>and my CSS:</strong></p>
  
  <pre><code>.panelGridCenter td,.panelGridCenter tr {
      text-align: center;
  }
  </code></pre>
  
  <p>It just aligns the content to center, but not the panelGrid</p>