feck Posted November 22, 2006 Share Posted November 22, 2006 Hi all,How do you make text wrap to the next line when a user types something in a textarea and they come to the end of the box?I've tried using both wrap="virtual" and wrap="physical", what am I doing wrong?I'm using XHTML 1.1 and CSS if that makes any difference.ThanksSorry guys,This works by default, the problem I was experiancing was in the testing.Basically you need to provide breaks in your text ie: real words and not just randomly keep hitting keyslike this:;akljsdf;akjds;jfa;lsdjf;lakjsdf;lkajd;lfja;lsdjfal;kjsdf;lkjadl;fja;ldjf;alkjdfl;kajdfIf you do this the text will not wrap because it does'nt know where the word breaks are.Sorry again Link to comment Share on other sites More sharing options...
skym Posted November 23, 2006 Share Posted November 23, 2006 I had a similar problem long ago, when experimenting a CMS. If for some reason you are replacing all spaces with and everything looks normal in the textarea, the words will not wrap. For the browser it's still just one long word. Hello world, how are you today... Link to comment Share on other sites More sharing options...
jlhaslip Posted November 23, 2006 Share Posted November 23, 2006 this -> " " is called a 'non-breaking space' for exactly that reason. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now