Rounded Corners On A Textarea With A Scrollbar
On my website I have a html textarea with a large amount of text in the box so it has a scroll. Well I would like to have rounded corners on my text area, but it looks awful with t
Solution 1:
You should be able to achieve something like you want by nesting your textarea within a div using your rounded corner style.
There's an example here:
DIV with rounded corners and internal scrollbars
Solution 2:
Put the textarea in a div and give it a border-radius and a padding
<divstyle="border-radius:10px; border:1px solid #000; padding:20px;"><textareareadonlyclass="xmlbox">
@Html.DisplayFor(modelItem => item.XMLText)
</textarea></div>
Post a Comment for "Rounded Corners On A Textarea With A Scrollbar"