Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

NS 6 Multiline control display

Status
Not open for further replies.

vinayak

Technical User
Sep 17, 2001
50
IN
hi,
I want to avoid displaying horizontal scroll bar in a TEXTAREA for a continious text in Netscape 6 and above and IE 5 and above as well.

I'm using the following code in JSP.

<textarea name=&quot;txa&quot; cols=&quot;50&quot; style=&quot;OVERFLOW: auto&quot; rows=&quot;4&quot; ></textarea>

Above code works well in IE 5 however it fails in NS 6.2

Let me know if I need to use any other styles in addition to the above &quot;style=&quot;OVERFLOW: auto&quot;.
 
if you read the doc, for overflow:auto, it says &quot;If the content is clipped, the browser should display a scroll-bar to see the rest of the content&quot;
so i guess this is NOT what you wanted to do !! maybe you should try overflow:visible : &quot;The content is not clipped. It renders outside the element&quot; or overflow:hidden &quot;The content is clipped, but the browser does not display a scroll-bar to see the rest of the content&quot;
taken from
 
The auto behavior is different in NS6 and IE5. What I'm looking for is No horizontal scroll (Vertical OK) when long is text is clipped and displayed on the sreen.
 
Did you try using WRAP attribute of the <taxtarea> tag?
I don't remember what value do you need, but it is one of these:

<textarea ... wrap=&quot;physical&quot;> or &quot;virtual&quot;
 
When thee is a continious (say QQQQQ.......)text in textarea, the text should wrap around and only vertical scroll bar should appear on both IE and NS.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top