The code below is driving me mad. I've tried so many iterations & combinations without success. What I want to achieve is a table that occupies the full width of the blue background then columns that are sized as a percentage of the table width (I've tried CSS and in-line). Within each column I want the input boxes to fill the full width of the column. I am unable to either:
a) Get the table columns the preferred width
b) Make input boxes full width of the column.
Any help would be appreciated. Thanks.
a) Get the table columns the preferred width
b) Make input boxes full width of the column.
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "[URL unfurl="true"]http://www.w3.org/TR/html4/loose.dtd">[/URL]
<html>
<style>
html { margin:0; padding:0; border:none; }
body { margin:0; padding:0; border:none;
font-family:Verdana, Arial, Helvetica, sans-serif; font-size:8.5pt;}
div.PnlQuote { background-color:rgb(199,220,239); margin-left:130px; }
input.RowCol2 { font-family: verdana; font-size: 8.5pt; width=100%; }
input.RowCol3 { font-family: verdana; font-size: 8.5pt; width=100%; text-align:right; }
input.RowCol4 { font-family: verdana; font-size: 8.5pt; width=100%; }
input.RowCol5 { font-family: verdana; font-size: 8.5pt; width=100%; }
input.RowCol6 { font-family: verdana; font-size: 8.5pt; width=100%; }
</style>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Test table</title>
</head>
<body>
<div class="PnlQuote">
<table>
<tr><td width="2%"></td>
<td width="15%">Date</td>
<td width="40%">Description</td>
<td width="20%">Ref</td>
<td width="15%">Amount</td>
<td width="8%">Buy?</td>
</tr>
<tr>
<td>1</td>
<td><input type=text class="RowCol2" name="EqpDate"></td>
<td><input type=text class="RowCol3" name="EqpDesc"></td>
<td><input type=text class="RowCol4" name="EqpSerNo"></td>
<td><input type=text class="RowCol5" name="EqpSiAmount"></td>
<td><input type=checkbox class="RowCol6" name="Eqp2ndHand"</td>
<tr>
<td>2</td>
<td><input type=text class="RowCol2" name="EqpDate"></td>
<td><input type=text class="RowCol3" name="EqpDesc"></td>
<td><input type=text class="RowCol4" name="EqpSerNo"></td>
<td><input type=text class="RowCol5" name="EqpSiAmount"></td>
<td><input type=checkbox class="RowCol6" name="Eqp2ndHand"</td>
</tr>
</table>
</form>
</div>
</body>
</html>