Jump to content

Wrap attribute in textarea


feck

Recommended Posts

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...