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

How to align text to RIGHT in h:outputText

ram gaurav
Ranch Hand

Joined: Mar 29, 2006
Posts: 208
Hi

I am making a table using jsf and in one coloumn i am making :

<hutputText value="Location" style="text-align:right;"/>

but it is not aligning the text as i defined i.e. right
Can you please tell me that how to do that.

Thanks
Denise Smith
Ranch Hand

Joined: Jul 26, 2005
Posts: 36
check your style sheets for outputText definitions


Surround yourself with learners...They will educate you!
Richard Green
Ranch Hand

Joined: Aug 25, 2005
Posts: 536
just put a border around the label so that you can see how big it really is and whether it is right-aligned or not.


MCSD, SCJP, SCWCD, SCBCD, SCJD (in progress - URLybird 1.2.1)
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: How to align text to RIGHT in h:outputText