I'm attempting to design a textarea with a consistent title in the top left corner. Here's what I have so far:
<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 problem arises when the text in the textarea becomes scrollable, as it overlaps with the title.
Is there a way to prevent this by implementing a fixed padding-top?