Got a question about technology? Ask it here. Discussion of hardware, software, TiVos, multi-region DVDs, Windows, Macs, LINUX, hand-helds, iPods, anything tech related. Better than any helpdesk!
So... anyone know anything about turning on/off horizontal word wrap in an HTML textarea?
So far, I've found if I add
textarea { white-space: pre; }
to the page's stylesheet, then the horizontal word wrap gets turned off. But then it's impossible to enter more than one line (i.e. a carriage return does
not
produce a new line when horizontal word wrap is turned off.
So:
- How do I turn horizontal word wrap off yet allow the user to use a carriage return to produce a new line?
- If I get that to work, how do I use Javascript to turn the horizontal word wrap on and off?
- Why does the above code work in a stylesheet but if I do the same thing in the textarea tag like so:
<textarea name='txtNote2' rows='14' cols='93' white-space: pre;>
it
doesn't
work?
That works! Thanks Tom. Any idea on how to allow the user to force new lines when wordwrap is off?
I'm not sure of exactly what you want, tommyrot, but this page might help: [link]
I am in desperate need of a new laptop. Several years of heavy use and occasional dropping on the floor are taking its toll. This one has been running quite slowly, and I don't know whether that would be the RAM or the speed of the processor. Any easy way I can find out what's responsible for the sluggishness?
Do you periodically run a virus checker and a malware checker?
Is that the disk cleanup and defragmentation tools in the control panel? I do that a lot too.
I think it is a 3rd party free program. Not anything that installs with Windows.