You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Paul Spencer <pa...@apache.org> on 2006/05/05 18:36:40 UTC
How to center dataScroller on page
My dataTable has a width of 100% and I would like the dataScroller
horizontally centered on the page. How do I configure this?
Paul Spencer
Re: How to center dataScroller on page
Posted by Mario Ivankovits <ma...@ops.co.at>.
Hi Paul!
> 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">
Damn. Was a hard week for me :-)
Ciao,
Mario
Re: How to center dataScroller on page
Posted by Paul Spencer <pa...@apache.org>.
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
>
>
Re: How to center dataScroller on page
Posted by Mario Ivankovits <ma...@ops.co.at>.
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