Hej,
I have a table with 1 row and 2 columns. In both columns are images below each
other. In the right cell are less images, so the height of this cell is
smaller.
Anyway, I want a navigation image at the bottom of both cells. Both cells share
the same CSS class "menubar":
td.menubar
{
background-color: white;
height: 100%;
text-align: center;
vertical-align: top;
}
This works, both cells are expanded to the same height. Now I add several image
to the cells, no problem so far. At the end of each cell I add the navigation
image and give it a CSS class bottom_btn:
..bottom_btn
{
position: absolute;
margin: 5px 0px;
bottom: 0px;
}
I expected that the parent of this image is the <td>, but the image is
positioned absolute to the <table>. Furthermore the image is not horizontal
center aligned anymore.
<table id="content">
<tr>
<td class="menubar">
<img src ...>
<img src ...>
<img src ...>
<img src ...>
<img src="img/links.gif" width="25" height="20" class="bottom_btn" />
</td>
<td class="menubar">
<img src ...>
<img src ...>
<img src="img/links.gif" width="25" height="20" class="bottom_btn" />
</td>
</tr>
</table>
And here another part of the CSS:
#content
{
width: 100%;
}
For the document I'm using XHTML 1.0 Transitional. The document is valid
(w3.org) as well as the CSS (w3.org). I think I have a logical error, does
anybody see it?!
Sebastian