I want this textarea to be fit inside the table row, by its height & width, so I have used height: 100%; width 100%; on textarea and my decided height width on td. Now textarea's width is ok, but height is not 100%, I am working hard with bellow code ~
<style>
body {text-align:center;font-family:Arial;font-weight:400;font-size: 16px;}
table {width:100%;text-align:center;border-collapse: separate;border-spacing: 15px 5px;}
td{padding:20px; box-shadow: 0px 0px 20px #e7e7e7; background-color: #fff;}
textarea{
width:100%;
height:100%;
resize: none;
}
</style>
<table>
<tr>
<td rowspan='2' style='height: 78vh;width: 30%; line-height: 28px;'> Layout - 1
</td>
<td rowspan='2' style='width: 40%;'>
Layout - 2
</td>
<td height='42%' style='width: 30%;'>
<textarea style='height:100% width:100%'></textarea>
</td>
</tr>
<tr>
<td height='42%'>
<textarea style='height:100% width:100%'></textarea>
</td>
</tr>
</table>
But not working, help! How to make 100% height of textarea inside a td? Please do not suggest rows="--" attribute.