Make DIV element contain text like that of an input element?

cupsf

New Member
I am attempting to make a div element work similarly to that of an input element.http://jsfiddle.net/MRP5M/6/I was wondering how the input element achieves the ability to scroll to the side without having scrollbars? I don't want my div element expanding to multiple rows to hold content, but I did not see any CSS properties controlling this behavior on the input element.UPDATE: All good solutions. Thank you guys for looking into it. It would appear that some aspects of the input element are controlled by the browser (i.e. highlight-to-scroll). It would appear difficult to emulate this functionality without use of Javascript. I've marked the first response as the solution.
 
Back
Top