I want to place a textarea
inside table td
. Unfortunately, it stays single-line.
<td align="right" valign="top">Текст акции</td>
<td>
<input type="textarea" rows="10" cols="45" name="push_title" />
</td>
If I set its width and height statically, it resizes, but still stays single-line in the middle of it. How can I solve this issue?
Use the <textarea>
element instead. As such:
<td align="right" valign="top">Текст акции</td>
<td>
<textarea name="" id="" cols="45" rows="10"></textarea>
</td>
Just to give you an example :
table tr td {
border: 1px solid #ccc;
}
<table style="width:100%" cellborder="1">
<tr>
<td align="right" valign="top">Текст акции</td>
<td>
<textarea name="" id="" cols="45" rows="10"></textarea>
</td>
<td>50</td>
</tr>
<tr>
<td>Eve</td>
<td>Jackson</td>
<td>94</td>
</tr>
</table>
Hope this helps!!!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With