0
Use the tag pre
inside the div.
<pre> - HTML | MDN
is the tag used to represent pre-formatted text. A text within this element is typically displayed in a non proportional font in the same way the original text was arranged in the file. Blank spaces are kept in the text the same way it was typed.
$(function() {
$origem=$("#origem");
$saida=$("#saida");
$origem.keyup(function() {
$saida.text($origem.val());
});
});
body { color:#ffffff}
#origem { width:250px; height:5em;}
#saida {
font-family: Arial Black; font-size: 14px;
}
.imagemDeFundo{
background: url('https://thumbs.dreamstime.com/t/textura-do-grunge-do-quadro-negro-36176292.jpg') no-repeat;
height:400px;
}
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<textarea id="origem"></textarea>
<div class="imagemDeFundo"><pre id="saida"></pre></div>
You can display HTML and explain the relationship between typing text, textarea and image?
– Sergio
You’ll get better answers if you give people code that they can use to reproduce the problem. This will help you a lot https://pt.meta.stackoverflow.com/questions/5483/manual-de-como-n%C3%83o-fazer-perguntas/5485#5485
– user60252
Other essential reading https://pt.meta.stackoverflow.com/questions/1078/como-e-por-que-aceitar-uma-resposta/1079#1079
– user60252