Forum Moderators: not2easy
<tr>
<td class = "tableSpace">Carrier:</td>
<td class = "tableSpace">Current Password:</td>
<td class = "tableSpace">Date Set:</td>
<td class = "tableSpace">Previous Password:</td>
<td class = "tableSpace">Date Previously Set:</td>
</tr>
<div id = "line">
<tr>
<td class = "tableSpace">carrier name</td>
<td class = "tableSpace">password</td>
<td class = "tableSpace">date</td>
<td class = "tableSpace">password</td>
<td class = "tableSpace">date</td>
</tr>
</div>
</table>
</center>
</div>
and here is my css
#image{
background: url(images/paper2.jpg) repeat-y center center;
width: auto;
height: 55em;
text-align: center;
color: black;
}
.tableClass{
text-align: center;
color: black;
font-size: 18px;
font-weight: bolder;
text-align: center;
border-bottom: medium;
}
.tableSpace{
padding-left: 1em;
padding-right: 1em;
padding-top: 1em;
text-align: center;
border-bottom: medium;
}
FYI the image is a piece of paper and I am trying to make it look like there is lines on it.
CSS
.tableSpace{
padding-left: 1em;
padding-right: 1em;
padding-top: 1em;
text-align: center;
font-size: 16px;
border-bottom: 1px solid #000;
}
.tableClass{
text-align: center;
color: black;
font-size: 18px;
font-weight: bolder;
text-align: center;
}
Similarly: <center> is long depreciated, and a <br> to create padding can be done with real padding or margins on the child.
Most interesting however, tables have some special properties you can set, esp. the border collapse mode is interesting.
[w3.org...]
Note that both IE6 and IE7 have crippling bugs with the conflict resolution of table borders in collapsed mode.