Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

To turn off wrapping in a textarea, you can use the CSS property white-space with the value nowrap. Here's an example:

textarea {
  white-space: nowrap;
}

This will prevent the text within the textarea from wrapping to the next line. Instead, the text will continue horizontally, and the user will need to use the scrollbar or arrow keys to view the rest of the text.