I have a table (just one layout table) with a sidebar (2 cells) and a content cell.
So the code is basically like this:
<table>
<tr>
<td class="nav" valign="top">
navlist
</td>
<td id="content" rowspan="2" valign="top">
content
</td>
</tr>
<tr>
<td id="options" valign="top">
text
<div>styleswitcher buttons</div>
</td>
</tr>
</table>
If the content cell is bigger than the content of the 2 cells in the sidebar, the content of the bottom sidebar cell will not align to the top of the cell, it stays at the vertical center of the content of the content cell. I've also tried using vertical-align in the css but it doesn't work either. The content in the bottom sidebar cell is some text followed by a div. I can get the div to sit where I want relative to the text but I can't control the height of the top sidebar cell.
The top cell in the sidebar has a class of nav, and its style is: vertical-align: top; margin: 0px; padding: 0px;
The bottom cell has an id of options and it has this style:
td#options {
vertical-align: top;
}
td#options * {
position: relative;
top: 5px;
}
The second style definition only affects the space between the text and the div inside the cell.
both of the cells in the sidebar have valign = "top" in the html.
What is the relative position relative to, anyway?
I think there must be something adding space under the list in the top sidebar cell, but I can't see anything.
I think my problem is the same as the problem posted by Tricky_9999 on May 26 and I think I've tried the solutions posted (vertical-align in css and valign in html) and it's still not working. I also tried position: relative; top: 5px; and that didn't help either.