Forum Moderators: not2easy
I have a problem with bullets disappearing behind left aligned images in Internet Explorer 6. See the following code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>List problem</title>
<style>
.leftImage {
float: left;
clear: left;
}
</style>
</head><body>
<p><img src="image.gif" style="width:100px; height:100px" class="leftImage">Lorem ipsum dolor sit amet.</p>
<ul>
<li>List item 1</li>
<li>List item 2</li>
<li>List item 3</li>
</ul>
</body>
</html>
What I want to achieve is left aligned images in text, the text wrapping around the image (the CSS equivalent of img align=left). But the bullets in lists disappear behind the image.
I have tried to set different margins and paddings on ul and li, but it doesn't have any effect.
Any ideas?
<p>Lorem ipsum dolor sit amet.</p>
<ul>
<li>List item 1</li>
<li>List item 2</li>
<li>List item 3</li>
</ul>
... just with a picture to the left.