Viki
07-21-2004, 02:39 AM
Hi,
I know this is very kiddy question. But kindly answer this.
Actually, in the below code, I want to make 3 fields i.e. of First Name, Middle Name and Last Name in one row having equal gap. I have shown this gap with blue, green and red colors. I dont know how to minize the blue area. I cannot underatand the width attribute of <td>. Or is there any way to control via CSS?
Kindly explain.
Bye,
Viki.
<html>
<head>
<style type="text/css">
-->
#fatherTable{
background-color: #e4d2b8;
position: absolute;
left: 10px;
top: 284px;
width: 980px;
}
-->
</style>
</head>
<body>
<form>
<div id="fatherTable">
<table border="0" cellpadding="0">
<td width=122 >
<th width="351"> <b><font face="Arial" size="4">
Father's Information</font></b>
</th>
</td>
<tr>
</tr>
<tr>
<td width="100" bgcolor="FFCC00" ><font face="Arial" size="3">Fisrt Name</font>
</td>
<td width="100" bgcolor="blue" ><font face="Arial" size="2"><input type="text" name="Student_Family_Name" size="20">
</font>
</td>
<td width="118" bgcolor="FFCC00" ><font face="Arial" size="3">
Middle Name </font>
</td>
<td width="149" bgcolor="green"><font face="Arial" size="2"><input type="text" name="Grandfathers_Name" size="20"></font>
</td>
<td width="118" bgcolor="FFCC00" ><font face="Arial" size="3">
Last Name </font>
</td>
<td width="149" bgcolor="red"><font face="Arial" size="2"><input type="text" name="Grandfathers_Name" size="20"></font>
</td>
</tr>
</table>
</form>
</html>
I know this is very kiddy question. But kindly answer this.
Actually, in the below code, I want to make 3 fields i.e. of First Name, Middle Name and Last Name in one row having equal gap. I have shown this gap with blue, green and red colors. I dont know how to minize the blue area. I cannot underatand the width attribute of <td>. Or is there any way to control via CSS?
Kindly explain.
Bye,
Viki.
<html>
<head>
<style type="text/css">
-->
#fatherTable{
background-color: #e4d2b8;
position: absolute;
left: 10px;
top: 284px;
width: 980px;
}
-->
</style>
</head>
<body>
<form>
<div id="fatherTable">
<table border="0" cellpadding="0">
<td width=122 >
<th width="351"> <b><font face="Arial" size="4">
Father's Information</font></b>
</th>
</td>
<tr>
</tr>
<tr>
<td width="100" bgcolor="FFCC00" ><font face="Arial" size="3">Fisrt Name</font>
</td>
<td width="100" bgcolor="blue" ><font face="Arial" size="2"><input type="text" name="Student_Family_Name" size="20">
</font>
</td>
<td width="118" bgcolor="FFCC00" ><font face="Arial" size="3">
Middle Name </font>
</td>
<td width="149" bgcolor="green"><font face="Arial" size="2"><input type="text" name="Grandfathers_Name" size="20"></font>
</td>
<td width="118" bgcolor="FFCC00" ><font face="Arial" size="3">
Last Name </font>
</td>
<td width="149" bgcolor="red"><font face="Arial" size="2"><input type="text" name="Grandfathers_Name" size="20"></font>
</td>
</tr>
</table>
</form>
</html>