By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,934 Members | 1,476 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,934 IT Pros & Developers. It's quick & easy.

Re: TextArea Horizontal Scrolling

P: n/a
I attempted to use the advice below, but still I keep getting word
wrap in my inputtextarea. I am very new to XML and CSS, and I do not
totally understand the layout. Below is the single XML line I am
modifying:

<h:inputTextarea binding="#{RaceReport.txtRiderInfo}" wordWrap="true"
id="txtRiderInfo" style="border-width: 2px; border-style: solid; font-
family: 'Courier New','Courier',monospace; font-size: 12px; height:
75%; left: 24px; top: 144px; position: absolute; width: 96%; overflow-
x: scroll"/>

I have tried all the suggestionss below, but am not exactly sure how
<textarea no-wrap></textareashould be used. For example if
<txtRiderInfo no-wrap></txtRiderInfois correct, than I also tried
that method with no luck either. For some reason the horizontal
scroll bar is greyed out, and the text wraps. Any additional advice
would be greatly appreciated!

Thanks

Ryan

>
try one or a combination of following css rules

textarea { overflow: auto; }
textarea { width: 90% }
textarea { white-space: pre; } * */* no wrap * * * * */
textarea { overflow-x: scroll; } */* horizontal lift */

or (not more allowed) :
* * <textarea no-wrap></textarea>

--
sm
Jun 27 '08 #1
Share this Question
Share on Google+
1 Reply


P: n/a
I see you have the code
wordWrap="true"
maybe try changing that to "false"
Jun 27 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.