I'm trying to create a textarea that has a fixed title at the top left corner. So far I have the following:
<div style="position: relative">
<div style="position:absolute; top:3px; left:3px; font-size:9px; line-height:10px">My Notes:</div>
<textarea rows="9" style="padding-top:12px"></textarea>
</div>
The issue is that the text in the textarea will overlap the title if the textarea contains enough text that it becomes scrollable.
Is it possible to avoid this with a sort of fixed padding-top?