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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Textbox not wrapping in Firefox

Status
Not open for further replies.

theoryofben

IS-IT--Management
Aug 25, 2001
149
US
I'm sure this is an easy fix, but I haven't been able to find the answer.

I have a multi-line textbox with the wrap property set to true. It works great in IE, but in Firefox it scrolls and doesn't wrap. What's the fix for this?

Any and all help is much appreciated.

Thanks.

________________________________________________
"I have not failed. I've just found 10,000 ways that won't work."-Thomas Edison

 
I think if you set a CSS style of width=100%, add wrap=virtual and set the columns to nothing then it should work e.g.
Code:
<textarea cols="" style="width: 100%;" wrap="virtual" />


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
Actually, that won't work so please ignore that. You'll find that the wrap attribute has been depreciated and wouldn't actually work as I thought (it will wrap text with spaces in fine but not if you put in one large string, which is what I guess you are testing with).

Will your users really be entering very long strings with no spaces in or do you think you could just be worrying about something that may not happen? If you are still looking for a solution, try asking in the HTML forum as they will have a lot more experience.


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
It's not a huge problem. It's just a text box for the users to enter a description. So it doesn't hurt anything for it to scroll horizontally, but I would prefer that it not. It works great in IE. I'll check out the html forum.

Thanks

________________________________________________
"I have not failed. I've just found 10,000 ways that won't work."-Thomas Edison

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top