Hi, ive recently decided to write/design my website by hand and ive just started to learn css.
Ive come accross a couple of problems – i can’t seem to get a nested table to be positioned at the top of the table its in, it is in the middle of the table instead!
And the three rows in the nested table dont appear to have any borders between them, how do i get borders between them?
Im using
[code]vertical-align = top;
but this doesnt seem to do anything, can some one help please!!!
this is my css so far:
[code]<style type=”text/css”>
<!–
body{
filter:progid:DXImageTransform.Microsoft.Gradient(endColorstr=’#FFFFFF’, startColorstr=’#C0CFE2′, gradientType=’0′);
text-align:center;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
margin-left: 0px;
}
.maintable{
text-align:center;
position: relative; top: -1px;
border-style = solid;
border-width = 1px;
cellspacing = 0px;
cellpadding = 0px;
width = 600;
height = 100%;
border-color = #000000;
background-color = #D5DCE4;
vertical-align = top;
}
.toptable{
text-align:center;
position = relative; top: 0px;
border-style = solid;
border-width =1px;
cellspacing = 0px;
cellpadding = 0px;
width = 600px;
height = 100px;
border-color = #000000;
background-color = #D5DCE4;
vertical-align = top;
}
–>
</style>
and this is my html:
[code]<div align=”center”>
<center>
<table class=”maintable”>
<tr>
<td>
<span class=”toptable”>
<table>
<tr>
<td>row1</td>
</tr>
<tr>
<td>row1</td>
</tr>
<tr>
<td>row3</td>
</tr>
</table>
</span>
</td>
</tr>
</table>
</center>
</div>
thanks for any help! ?