I have a textarea with 200px of height, but when I pass that 200px with text I want to have the textarea expanded instead of keeping the 200px of height with a scroll bar.>
No it is not possible to do only with css, but you could use jquery:
$('#your_textarea').on('keydown', function(e){ var that = $(this); if (that.scrollTop()) { $(this).height(function(i,h){ return h + 20; }); } });