This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
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


Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
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: 17151
    
  27

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


An IDE is no substitute for an Intelligent Developer.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to add style to h:panelGrid
 
It's not a secret anymore!