title: JSF snippet to center an image in a panel grid
body: <p>I am trying to write some JSF code that centers an image in a panel grid.  The simple approach would appear to be:  </p>
  
  <pre><code>&lt;h:panelGrid columns="1" style="text-align:center"&gt;
    &lt;h:graphicImage value="/path/to/image.png" /&gt;
  &lt;/h:panelGrid&gt;
  </code></pre>
  
  <p>but this approach does not seem to work.</p>