Is there a way to create a textarea
that dynamically expands to fill the available space within a div, while maintaining fixed height offsets from the top and bottom? The CSS code below achieves this effect in Chrome, but Firefox displays the textarea
with a default height, resulting in extra space at the bottom. Any ideas on how to achieve consistent behavior across all browsers?
#add-comment-text
{
position: absolute;
left: 5px;
top: 50px;
bottom: 50px;
width: 99%;
}