Setting my textarea’s css style bottom: 5px; will not work as expected, means will not change it’s height.. like would do in chrome.
Setting my textarea’s css style bottom: 5px; will not work as expected, means will
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Assuming that you’re talking about something like this: http://jsfiddle.net/thirtydot/44pwh/
..there’s no way to make it work in IE9.
In fact, it only works in WebKit browsers.
It’s probably something to do with
textareabeing a replaced element, and WebKit handling it differently to other layout engines.As a workaround, you can apply
top/right/bottom/leftto a wrapperdiv, then add thetextareainside thatdiv. Then, add this:http://jsfiddle.net/thirtydot/44pwh/1/
box-sizing: border-boxis to make thetextareafit perfectly – without it, the defaultpadding/borderwould make thetextareaslightly larger than ideal.