Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Setting Width for <h:outputText > using CSS

843844Dec 13 2007 — edited Dec 13 2007
Hello,

I want to set the width for <h:outputText > using CSS style.
I have used following for this:

<h:outputText value="A" style="width:200px;" />

But it didnot set the width for output text component and show the length as per the value of the component. I need to set the fix width for this component.

Is there something wrong with this?

Please suggest to set the width for <h:outputText >.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 10 2008
Added on Dec 13 2007
2 comments
681 views