Although a few questions are similar to this before, this is a bit different.
I have a table that looks something like this:
<table> <tr> <td style="height: 100px;"> <img src="..." style="height: 100px;" /> <img src="..." style="height: 100px; position: relative; top: -100px;" /> </td> </tr> </table>
This overlays the second image on the first. However, td insists it's 200px high, although there is only 100px content. Setting the height td does nothing, which is consistent with answers to other questions.
However, I have no way to embed content in a DIV and set the height to 100px , because td will still insist on 200px high.
How can I tell td just be 100px tall?
Edit: Oh, and using absolute positioning is out of the question, because there are a lot of manipulations with the DOM on the page, and the material moves - while absolutely positioned things do not work.
Edit: jsFiddle example can be found here .
source share