4
I need to make a form for printing that could be typed in the browser or printed for writing.
As it can be written on the printed sheet, I need a style in the textarea that draws the lines as if it were a notebook. I need this model:
body {
width: 670px;
margin-left: 20px;
margin-right: 20px;
margin-left: auto;
margin-right: auto;
}
input {
border-color: #ffffff #ffffff #000000;
border-style: solid solid dotted;
border-width: 0 0 1px;
font-size: 11pt;
font-weight: bold;
}
table {
width: 100%;
}
.td_linha {
display: table;
width: 100%;
}
.label_campo{
display: table-cell;
width: 1%;
}
.input_linha{
display: table-cell;
width: 100%;
}
<html>
<head>
<title>declaracao</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<h1>DECLARAÇÃO</h1>
<table>
<tr>
<td colspan="2" class="td_linha">
<label class="label_campo">Eu,</label>
<input class="input_linha">
</td>
</tr>
<tr>
<td>
<label>RG</label> <input id="rg">
<label>,CPF</label> <input id="cpf">
</td>
</tr>
<tr>
<td colspan="2" class="td_linha">
<label class="label_campo">Residente</label>
<input class="input_linha">
</td>
</tr>
<tr>
<td>
<label>CEP</label> <input id="cep">
</td>
</tr>
</table>
<p>DECLARO, perante o Instituto </p>
_____________________________________________________________<br/>
_____________________________________________________________<br/>
_____________________________________________________________<br/>
_____________________________________________________________<br/>
_____________________________________________________________<br/>
_____________________________________________________________<br/>
_____________________________________________________________<br/>
_____________________________________________________________<br/>
_____________________________________________________________<br/>
_____________________________________________________________<br/>
_____________________________________________________________<br/>
_____________________________________________________________<br/>
_____________________________________________________________<br/>
_____________________________________________________________<br/>
<p>Declaro, outrossim, estar ciente de que, se em qualquer época, ficar
comprovado a inexatidão destas declarações, estarei incurso nos artigos
171 e 299 do Código Penal.</p>
São Paulo, ______ de __________________ de __________.<br/>
_______________________________________________<br/>
<hr/>
</body>
</html>
So far what I did was the form above, but I need to replace the lines by the textarea to be fillable.
It is a viable solution, only that it takes a dick in the rendering when it passes the height of the textarea, disengaging the image of the text. Thanks, but I ended up creating another solution that, although not with the textarea, I think it got more porformático. Thanks
– Paulo Henrique
To "don’t mess around" just adjust the textarea in the same aspect ratio as the image. And preferably use a uniform spacing source whose dimensions should also be proportional.
– Daniel Omine