I want to create a textarea
in a form made in HTML
, using simple CSS
in which I can see information that I have already entered and then within the same textarea
can add text.
I managed to do something similar using 2 textarea
but it looks so good and in dynamic mode it is very badly stopped.
This is what I have
.var {
margin-top: -15px;
border-top: none;
}
<form>
<fieldset>
<legend>Textarea with Fixed Text Portion</legend>
<textarea readonly="readonly" cols="50" rows="2">This part of the textarea content is fixed and cannot be changed</textarea> 'introducir el código aquí'<br/>
<textarea class="var" cols="50" rows="10">but the rest of the textarea content can be changed to whatever you want.</textarea>
</fieldset>
</form>