Mario,
I discovered a variation of your suggestion. Add the align attribute to
the <h:panelGrid>. This does not require any changes to the stylesheet :)
<h:panelGrid columns="1" align="center">
<t:dataScroller...>
</h:panelGrid>
Paul Spencer
Mario Ivankovits wrote:
Hi!
My dataTable has a width of 100% and I would like the dataScroller
horizontally centered on the page. How do I configure this?
I had the same problem today. I fixed it by:
Placing a panelGrid with columns=1 and columnClasses="tCenter" around
the dataTable and the dataScroller, but I guess this was not the real fix.
I applied a styleClass="scroller" to it and configured the stylesheet with
.tCenter
{
text-align: center;
}
.scroller
{
display: inline;
}
Ciao,
Mario