<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Bottom align text</title>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
<style type="text/css" media="screen">
<!--
p.margin0padding0 {
margin:0;
padding:0;
}
.mentorWrapper {
width:375px;
height:127px;
}
.imageFixedPos {
float:left;
width:122px;
height:127px;
display:block;
}
.stackedText {
width:253px;
height:100%;
position:relative;
}
.stackedText div {
position:absolute;
bottom:0;
left:0;
}
-->
</style>
</head>
<body>
<div class="mentorWrapper"> <img src="images/th_head.jpg" alt="John Doe" class="imageFixedPos" width="122" height="127" border="0" />
<div class="stackedText">
<div>
<p class="margin0padding0"><a style="margin-left:20px;" href="#">John Doe</a><br />
<span style="font-style:italic;margin-left:40px;">Motivational Speaker</span></p>
</div>
</div>
</div>
<div class="mentorWrapper"> <img src="images/th_head.jpg" alt="Sally Jane" class="imageFixedPos" width="122" height="127" border="0"/>
<div class="stackedText">
<div>
<p class="margin0padding0"><a style="margin-left:20px;" href="#">Sally Jane</a><br />
<span style="font-style:italic;margin-left:40px;">News Anchor</span></p>
</div>
</div>
</div>
</body>
</html>
Looks fine in IE 7, but the text will float over the image in Firefox 3.