Posts: 185
Location: print_r($serbia);
|
Ok i understand that, but if a user inputs, in my case, 37 characters(one row in textarea), than the height of that element is 59px, 2 rows - 69px...4 rows - 89px
By checking the length of user input i can approximately guess the height which im subtracting from 450, of course this is only tested and works for my screen resolution and my font size.
I don't know any better way to write this, except javascript which will be more precise, but basically it's the same method.
|