开发者

css textarea size

开发者 https://www.devze.com 2023-03-24 05:51 出处:网络
My goal is to have a text area that automatically resizes to whatever horizontal space is available after margins. Basically I am trying to align 160px on the left margin

My goal is to have a text area that automatically resizes to whatever horizontal space is available after margins. Basically I am trying to align 160px on the left margin 50px on the right margin and then the textarea fills in the rest. Ive tried auto. I have also tried multiple combinations of positions, displays, ne开发者_运维技巧sting divs, and more. So far I have not been able to set the textarea to automatically fill the left and right space that is available. How can I accomplish this?

edit: it needs to fill the document width


<div style="margin:0 50px 0 160px">
   <textarea style="width:100%">123</textarea>
</div>

Here is the code

0

精彩评论

暂无评论...
验证码 换一张
取 消