I have a div that is inside a cell of a table. These are the specs
#CellDiv {
border:0px solid black;
height:100%;
width:100%;
overflow:auto;
}
For some reason I get a extra space right above it. This is the code for the cell.
<td width="24%" valign="top" bgcolor="#FFFFFF">
<div id="CellDiv">
<table width="100%" height="78" border="1" align="center" bordercolor="#000000">
<tr valign="top">
<td height="23" colspan="2"> <div align="center"><strong>
<font color="#FF0000"><em>Upcoming Expirations</em></font></strong></div>
</td></tr>
<tr valign="top">
<td height="23"><em><strong><font color="#6699CC">Date</font></strong></em></td>
<td><em><strong><font color="#6699CC">Contract Name</font></strong></em></td>
</tr>
<% Do While Not RS1.EOF %>
<tr valign="top">
<td width="54" height="22">
<% Response.write RS1("ContractExpiration"%>
</td>
<td> <div class="BLACK"><A Href="servicecalendar.asp?recdate=<%= RS1("ContractExpiration"%>">
<% Response.write RS1("ContractName"%>
</A></div></td>
</tr>
<% RS1.MoveNext
loop
%>
</table>
</div></td>
For some reason it gives me a big extra space sometimes right above the table in the Div tag.
AJ
#CellDiv {
border:0px solid black;
height:100%;
width:100%;
overflow:auto;
}
For some reason I get a extra space right above it. This is the code for the cell.
<td width="24%" valign="top" bgcolor="#FFFFFF">
<div id="CellDiv">
<table width="100%" height="78" border="1" align="center" bordercolor="#000000">
<tr valign="top">
<td height="23" colspan="2"> <div align="center"><strong>
<font color="#FF0000"><em>Upcoming Expirations</em></font></strong></div>
</td></tr>
<tr valign="top">
<td height="23"><em><strong><font color="#6699CC">Date</font></strong></em></td>
<td><em><strong><font color="#6699CC">Contract Name</font></strong></em></td>
</tr>
<% Do While Not RS1.EOF %>
<tr valign="top">
<td width="54" height="22">
<% Response.write RS1("ContractExpiration"%>
</td>
<td> <div class="BLACK"><A Href="servicecalendar.asp?recdate=<%= RS1("ContractExpiration"%>">
<% Response.write RS1("ContractName"%>
</A></div></td>
</tr>
<% RS1.MoveNext
loop
%>
</table>
</div></td>
For some reason it gives me a big extra space sometimes right above the table in the Div tag.
AJ