-1

How to remove unwanted space below textarea within table cell? Thx.

<!DOCTYPE html>
<table border=1>

<tr><td class=property_big>Comments</td><td></td><td><textarea 
class=boxwidth cols=20 rows=3 name=description></textarea></td></tr>

</table>
KARTHIKEYAN.A
  • 18,210
  • 6
  • 124
  • 133

1 Answers1

0

Add position:relative; and float:left; in your CSS to the boxwidth class of the <textarea> like this:

.boxwidth
{
   position:relative;
   float:left;
}
<!DOCTYPE html>
<html>
<head>
<title>Title of the document</title>
</head>

<body>
<table border="1">
<tr>
  <td class="property_big">Comments</td>
  <td></td>
  <td><textarea class="boxwidth" cols="20" rows="4" name="description"></textarea></td>
</tr>
</table>
</body>

</html>

Or, you could write the style directly to the element in HTML like this:

<td><textarea class="boxwidth" cols="20" rows="4" name="description" style="position:relative; float:left;"></textarea></td>
Ivan86
  • 5,695
  • 2
  • 14
  • 30