Instead of using whitespace: no-wrap;
Try using
white-space: pre;
Space is saved by the browser. Text will only wrap on line breaks. Acts as a <pre> in HTML.
Updates:
From your comments you should go with the wrap="off" attribute.
I would also like you to go through Textarea Tricks and send
Nowrap Section:
To prevent plain text wrapping in CSS, use white-space: nowrap . But for some reason this does not work with text areas. If you want to be able to enter text in text fields and rather do not interrupt the lines until you press return / enter (horizontal scroll bar instead), you will have to use the wrap = "off" attribute .
Here is the fiddle
source share