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?

Matt
  • 1,893
  • 11
  • 33
  • 57

2 Answers2

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"
bensiu
  • 24,660
  • 56
  • 77
  • 117
Vicky
  • 164
  • 1
  • 3
0
<style>
    input {
        resize: horizontal;
        width: 200px;
    }

    input:active {
        width: auto;   
    }

    input:focus {
        min-width: 200px;
    }
</style>