• python
  • javascript
  • reactjs
  • sql
  • c#
  • java
Facebook Twitter Instagram
Devs Fixed
  • python
  • javascript
  • reactjs
  • sql
  • c#
  • java
Devs Fixed
Home ยป Resolved: How do i resize a textarea, to content width, having min-width and max-width?

Resolved: How do i resize a textarea, to content width, having min-width and max-width?

0
By Isaac Tonny on 15/03/2023 Issue
Share
Facebook Twitter LinkedIn

In this post, we will see how to resolve How do i resize a textarea, to content width, having min-width and max-width?

Question:

So, i have troubles with a textarea now, and i cant make it resize to a content width… Ive found a long and detailed answer about content height, and it works !! but not having the content width on it…
This is that post: Creating a textarea with auto-resize
BUT, my issue isnt solved, i need the width to resize too. Considering max and min widths.
This is the example code:


Also, this is how i want them to be:
enter image description here

Best Answer:

Something like this?
Note: as said in the comment, this technique uses the contenteditable property instead


If you have better answer, please add a comment about this, thank you!

Source: Stackoverflow.com

css html jquery
Share. Facebook Twitter LinkedIn

Related Posts

Resolved: Java Swing center JLabel in JPanel with two JLabels

27/03/2023

Resolved: How to compare two text files and and change the sign of the data in powershell?

27/03/2023

Resolved: Java Virtual Machines deleted

27/03/2023

Comments are closed.

© 2023 DEVSFIX.COM

Type above and press Enter to search. Press Esc to cancel.