Viki
07-21-2004, 06:13 AM
Hi,
Here is the code which shows two tables, fatherTable and motherTable. The top property of fatherTable is 100. This means fatherTable iis starting from 100 of 768. Now I want to caluclate the length of fatherTable so that I can place motherTable exactly right after fatherTable. There must be some mathematical calculations have to be done.
Bye,
Viki
<html>
<head>
<style type="text/css">
-->
#fatherTable{
background-color: #e4d2b8;
position: absolute;
left: 10px;
top: 100px;
width: 800px;
}
td{
font-family:arial;
}
.bold{
font-size:14pt;
font-weight:bolder;
}
.text{
font-size:12pt;
width:118px;
background-color:#FFCC00;
}
.input{
font-size:10pt;
width:149px;
background-color: GRAY ;
}
#motherTable{
background-color: #e4d2b8;
position: absolute;
left: 10px;
top: 500px;
width: 800px;
}
-->
</style>
</head>
<body bgcolor="#cfd5e1" vlink="#FF00FF" alink="#000080">
</form>
<div id="fatherTable">
<table border="0" cellpadding="0">
<tr>
<td colspan=6 class="bold">
Father's Information
</td>
</tr>
<tr height=35>
<td class="text">First Name</td>
<td class="input" ><input type="text" name="Student_Family_Name" size="20"></td>
<td class="text">Middle Name</td>
<td class="input" ><input type="text" name="Grandfathers_Name" size="20"></td>
<td class="text" bgcolor="green">Last Name</td>
<td class="input"><input type="text" name="Grandfathers_Name" size="20"></td>
</tr>
<tr height=35>
<td class="text">Civil ID #</td>
<td class="input" ><input type="text" name="Student_Family_Name" size="20"></td>
<td class="text">Passport #</td>
<td class="input" ><input type="text" name="Student_Family_Name" size="20"></td>
<td class="text">Mobile #</td>
<td class="input" ><input type="text" name="Student_Family_Name" size="20"></td>
</tr>
<tr height=35>
<td class="text">Profession</td>
<td class="input" ><input type="text" name="Student_Family_Name" size="20"></td>
</tr>
<tr>
<td colspan=6 class="bold">
Home Address
</td>
</tr>
<tr height=35>
<td class="text">Area</td>
<td class="input" ><input type="text" name="Student_Family_Name" size="20"></td>
<td class="text">Block</td>
<td class="input" ><input type="text" name="Grandfathers_Name" size="20"></td>
<td class="text" bgcolor="green">Street</td>
<td class="input"><input type="text" name="Grandfathers_Name" size="20"></td>
</tr>
<tr height=35>
<td class="text">House #</td>
<td class="input" ><input type="text" name="Student_Family_Name" size="20"></td>
<td class="text">Country</td>
<td class="input" ><input type="text" name="Student_Family_Name" size="20"></td>
<td class="text">Telephone #</td>
<td class="input" ><input type="text" name="Student_Family_Name" size="20"></td>
</tr>
<tr>
<td colspan=6 class="bold">
Business Address
</td>
</tr>
<tr height=35>
<td class="text">Area</td>
<td class="input" ><input type="text" name="Student_Family_Name" size="20"></td>
<td class="text">Post Office</td>
<td class="input" ><input type="text" name="Grandfathers_Name" size="20"></td>
<td class="text">Country</td>
<td class="input" ><input type="text" name="Student_Family_Name" size="20"></td>
</tr>
<tr height=35>
<td class="text" bgcolor="green">Telephone</td>
<td class="input"><input type="text" name="Grandfathers_Name" size="20"></td>
<td class="text">Country</td>
<td class="input" ><input type="text" name="Student_Family_Name" size="20"></td>
</tr>
</table>
</div>
<div id="motherTable">
<table border="0" cellpadding="0">
<tr>
<td colspan=6 class="bold">
Mother's Information
</td>
</tr>
<tr height=35>
<td class="text">First Name</td>
<td class="input" ><input type="text" name="Student_Family_Name" size="20"></td>
<td class="text">Middle Name</td>
<td class="input" ><input type="text" name="Grandfathers_Name" size="20"></td>
<td class="text" bgcolor="green">Last Name</td>
<td class="input"><input type="text" name="Grandfathers_Name" size="20"></td>
</tr>
</table>
</div>
</form>
</body>
</html>
Here is the code which shows two tables, fatherTable and motherTable. The top property of fatherTable is 100. This means fatherTable iis starting from 100 of 768. Now I want to caluclate the length of fatherTable so that I can place motherTable exactly right after fatherTable. There must be some mathematical calculations have to be done.
Bye,
Viki
<html>
<head>
<style type="text/css">
-->
#fatherTable{
background-color: #e4d2b8;
position: absolute;
left: 10px;
top: 100px;
width: 800px;
}
td{
font-family:arial;
}
.bold{
font-size:14pt;
font-weight:bolder;
}
.text{
font-size:12pt;
width:118px;
background-color:#FFCC00;
}
.input{
font-size:10pt;
width:149px;
background-color: GRAY ;
}
#motherTable{
background-color: #e4d2b8;
position: absolute;
left: 10px;
top: 500px;
width: 800px;
}
-->
</style>
</head>
<body bgcolor="#cfd5e1" vlink="#FF00FF" alink="#000080">
</form>
<div id="fatherTable">
<table border="0" cellpadding="0">
<tr>
<td colspan=6 class="bold">
Father's Information
</td>
</tr>
<tr height=35>
<td class="text">First Name</td>
<td class="input" ><input type="text" name="Student_Family_Name" size="20"></td>
<td class="text">Middle Name</td>
<td class="input" ><input type="text" name="Grandfathers_Name" size="20"></td>
<td class="text" bgcolor="green">Last Name</td>
<td class="input"><input type="text" name="Grandfathers_Name" size="20"></td>
</tr>
<tr height=35>
<td class="text">Civil ID #</td>
<td class="input" ><input type="text" name="Student_Family_Name" size="20"></td>
<td class="text">Passport #</td>
<td class="input" ><input type="text" name="Student_Family_Name" size="20"></td>
<td class="text">Mobile #</td>
<td class="input" ><input type="text" name="Student_Family_Name" size="20"></td>
</tr>
<tr height=35>
<td class="text">Profession</td>
<td class="input" ><input type="text" name="Student_Family_Name" size="20"></td>
</tr>
<tr>
<td colspan=6 class="bold">
Home Address
</td>
</tr>
<tr height=35>
<td class="text">Area</td>
<td class="input" ><input type="text" name="Student_Family_Name" size="20"></td>
<td class="text">Block</td>
<td class="input" ><input type="text" name="Grandfathers_Name" size="20"></td>
<td class="text" bgcolor="green">Street</td>
<td class="input"><input type="text" name="Grandfathers_Name" size="20"></td>
</tr>
<tr height=35>
<td class="text">House #</td>
<td class="input" ><input type="text" name="Student_Family_Name" size="20"></td>
<td class="text">Country</td>
<td class="input" ><input type="text" name="Student_Family_Name" size="20"></td>
<td class="text">Telephone #</td>
<td class="input" ><input type="text" name="Student_Family_Name" size="20"></td>
</tr>
<tr>
<td colspan=6 class="bold">
Business Address
</td>
</tr>
<tr height=35>
<td class="text">Area</td>
<td class="input" ><input type="text" name="Student_Family_Name" size="20"></td>
<td class="text">Post Office</td>
<td class="input" ><input type="text" name="Grandfathers_Name" size="20"></td>
<td class="text">Country</td>
<td class="input" ><input type="text" name="Student_Family_Name" size="20"></td>
</tr>
<tr height=35>
<td class="text" bgcolor="green">Telephone</td>
<td class="input"><input type="text" name="Grandfathers_Name" size="20"></td>
<td class="text">Country</td>
<td class="input" ><input type="text" name="Student_Family_Name" size="20"></td>
</tr>
</table>
</div>
<div id="motherTable">
<table border="0" cellpadding="0">
<tr>
<td colspan=6 class="bold">
Mother's Information
</td>
</tr>
<tr height=35>
<td class="text">First Name</td>
<td class="input" ><input type="text" name="Student_Family_Name" size="20"></td>
<td class="text">Middle Name</td>
<td class="input" ><input type="text" name="Grandfathers_Name" size="20"></td>
<td class="text" bgcolor="green">Last Name</td>
<td class="input"><input type="text" name="Grandfathers_Name" size="20"></td>
</tr>
</table>
</div>
</form>
</body>
</html>