Add Scrollbar for Multiline TextBox (TextArea) in CSS

aravindg86
 
on Aug 05, 2019 03:53 PM
Sample_161485.zip
10447 Views

How to enable scroll bars for multiline text box.

I tried attached style but its not working.

Can you please let me know how it works.

Thanks...

<div id="target" style="overflow: scroll; width: 200px; height: 100px;">
    <input type="text" id="txtUpdateComment">
</div>

 

Download FREE API for Word, Excel and PDF in ASP.Net: Download
pandeyism
 
on Aug 06, 2019 03:13 AM

Hi aravindg86,

Use textarea for multiline and use styling inside textarea. refer below sample.

HTML

<div style="overflow: scroll; width: 200px; height: 100px;">
    <textarea id="txtComment" style="height: 100px;" ></textarea>
</div>

Demo