• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSF h:outputText style attribute

 
prena bhatt
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a <hutputText> tag in h:panelgrid with 3 columns.

All together i have 3 tags inside the h:panelGrid.

h:graphicImage, hutputText and a h:panelGroup.

Inside huputText i have some text. The problem is that i want that text to be centered and i put the style tag with attribute style = "text-align:center;

However it does not work. It just comes in one line and pushes the h:panelgroup all the way to the right side of the screen.

Can i fix the width of each column under h:panelgrid? or should i put the style attribute somewer else?

Thanks

Prena
 
Joe Matthew
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yeah, this looks like an HTML align problem than a JSF one. The best way out of this is to start putting the borders on the page (HTML table borders). This way you will find out which table is creating this problem and solve it. This would mean restructuring the page maybe.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic