1

I'm trying to make my input field resizable, but the code I found doesn't work anymore.

#mededeling { resize: both; } 

Does anybody know the most recent working code?

3
  • It is a textfield <label for="mededeling">Mededeling: </label> <input type="text" id="mededeling" /> Commented Apr 24, 2013 at 15:09
  • 1
    stackoverflow.com/questions/8642255/… Commented Apr 24, 2013 at 15:09
  • Sorry, I mean textarea <textarea rows="4" cols="50"></textarea> Commented Apr 24, 2013 at 15:15

2 Answers 2

1

what about using textarea instead of input? 1row height textarea looks just like input type[text] and can be submitted in form:

textarea name="" id="" cols="30" rows="1" 
Sign up to request clarification or add additional context in comments.

Comments

0
<style> input { resize: horizontal; width: 200px; } input:active { width: auto; } input:focus { min-width: 200px; } </style> 

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.