I have something like:
// CSS
.med_rect {
width: 300px;
height: 250px;
padding: 10px;
margin-bottom: 10px;
border: 1px solid #E3E3E3;
background: #F5F7F9
}
// HTML
<table>
. <tr>
. . <td>
. . . <div style="height: 1000px">
. . . . Text
. . . </div>
. . </td>
. . <td>
. . . <div class="med_rect"
. . . . style="position: absolute;
. . . . . bottom: 0;
. . . . . margin: 10px 0 100px 0">
. . . . . . Text 2
. . . </div>
. . </td>
. </tr>
</table>
(I've added . for indention in an attempt to make it a little easier to read)
In Chrome and IE, this positions the <div> in the second cell at the bottom, then pushes it up by 100px, like I expect; the inline "margin" style overrides the class.
In FF, though, the <div> ends up 35px BELOW the bottom of the table; meaning, instead of being 100px above the bottom, it's 35px below.
The doctype is:
<!DOCTYPE html public "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
Any suggestions on how to fix this?