Forum Moderators: not2easy
HTML:
<div class=chapter>
<div class=imglist>
<img src="img1.jpg">
<img src="img2.jpg">
<img src="img3.jpg">
</div>
<p>Chapter Text...</p>
</div>
CSS:
.chapter {width: 690px; position: relative;}
.imglist {float: right; width: 140px; position: absolute; right: 0; bottom: 0;}
.chapter P {width: 540px;}
In FF this works as I want, but IE (6) will put the images at the bottom of the page and not aligned with the bottom of the chapter div. Adding a float:left to the P doesn't make any difference.
How can I get it right for IE?
Thanks,
Arjan
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Test Page</title>
<style type="text/css">
<!--
.chapter {
position: relative;
width: 690px; // remove to move the imglist to the bottom of the page
}
.imglist {
float: right;
width: 140px;
position: absolute;
right: 0;
bottom: 0;
}
.chapter P {
width: 540px;
}
-->
</style>
</head>
<body>
<div id="container">
<div class="chapter">
<div class="imglist">
This text should be aligned to the bottom of the Left text 1
</div>
<p>
Left text 1<br>
Left text 1<br>
Left text 1<br>
Left text 1<br>
Left text 1<br>
Left text 1<br>
Left text 1<br>
Left text 1<br>
Left text 1<br>
Left text 1<br>
</p>
</div>
<div class="chapter">
<p>
Left text 2<br>
Left text 2<br>
Left text 2<br>
Left text 2<br>
Left text 2<br>
Left text 2<br>
Left text 2<br>
Left text 2<br>
Left text 2<br>
Left text 2<br>
</p>
</div>
</div>
</body>
</html>