File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » JSF
Reply 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: 177
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: 14468
    
    7

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


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: jrebel
 
subject: How to add style to h:panelGrid
 
Similar Threads
problem in using richfaces
JSF h:outputText style attribute
Safari - TypeError on first submit
Trying to refresh a dataTable on a JSP after data is updated but so far no luck
RichFaces SuggestionBox Not Displaying Values