aspose file tools*
The moose likes JSF and the fly likes How to add style to h:panelGrid Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "How to add style to h:panelGrid" Watch "How to add style to h:panelGrid" New topic
Author

How to add style to h:panelGrid

chen young
Ranch Hand

Joined: Sep 09, 2005
Posts: 197
Hi,

I have a panel grid with two columns and I want to align the right column text in the center and the left column text to the left.

I try to play with it over and over but still it’s not working



Here is the css:



Any idea how could I archive this layout ??

Thanks
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16308
    
  22

Not "styleClass". Use "columnClasses" on the panelGrid element.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to add style to h:panelGrid