sircharlo Posted August 1, 2007 Share Posted August 1, 2007 Hi, everyone !I need help setting the wrap feature for textareas.Currently, This is what happens when someone enters alot of text without pressing Enter in IE:However, this is what happens in FF:How do I acheive the IE result (somesort of auto-wrap) in FF and other browsers ? (Note: The vertical scrollbar in IE is not necessary, and in fact I don't like it. Is there a way to remove it and put it only if necessary ?)Thanks ! Link to comment Share on other sites More sharing options...
sircharlo Posted August 2, 2007 Author Share Posted August 2, 2007 I would really appreciate a reply Link to comment Share on other sites More sharing options...
justsomeguy Posted August 2, 2007 Share Posted August 2, 2007 Other then the relevant CSS properties, I don't think there is a way to specify scrollbars or word wrapping on a textarea. Link to comment Share on other sites More sharing options...
Synook Posted August 2, 2007 Share Posted August 2, 2007 In the textarea tag you can try <textarea wrap="hard"></textarea>The relevant CSS property for showing scrollbars is overflow:auto; Link to comment Share on other sites More sharing options...
sircharlo Posted August 2, 2007 Author Share Posted August 2, 2007 Other then the relevant CSS propertiesWhat relevant CSS properties ? Link to comment Share on other sites More sharing options...
aspnetguy Posted August 2, 2007 Share Posted August 2, 2007 the threads I found claimed this was a bug and had been reported to Mozilla, however that was in 2005. Either it is not a bug or Mozilla is taking a long time in fixing it. Link to comment Share on other sites More sharing options...
sircharlo Posted August 2, 2007 Author Share Posted August 2, 2007 the threads I found claimed this was a bug and had been reported to Mozilla, however that was in 2005. Either it is not a bug or Mozilla is taking a long time in fixing it.Is there a way around it ? Link to comment Share on other sites More sharing options...
Synook Posted August 3, 2007 Share Posted August 3, 2007 Did you try wrap="hard" ? What relevant CSS properties ?overflow:auto; to fix the vertical scrollbar problem in IE, as I said earlier... Link to comment Share on other sites More sharing options...
sircharlo Posted August 3, 2007 Author Share Posted August 3, 2007 When I tried wrap="hard", my validator said the attribute wrap didn't exist. But it doesn't matter, my problem is solved.Turns out when it's just one long word, FF doesn't wrap it, but when there are many words in a phrase, it does, so I don't have a problem anymore.Thank you all very much for the time you devoted to helping me ! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.