I copied this from another thread because it became buried. So far, all I got were kludges that changed other parts of the page to fix the problem.
Divs don't always work exactly the way you want them to, especially when they are inside other layout tags. I gave up after SIX hours of trying to get a simple three-column set of divs
to line up correctly inside a pair of li tags. It always either dropped one div to a lower area, or took some of the text below the ending li tag and put it on the right of the three divs, or failed to display correctly on one browser while working on the others.
Here is code that fails. Somebody please tell me why. You will note that the set of divs inside the li pair fails, but the ones down below the ul pair work correctly. And IE messes it up differently than FF does. The ONLY difference between the two is that one set is inside the ul list's li pair.
And giving up the bulleted list is NOT an option. The rest of the real page looks stupid without the bullets.
<html>
<head>
<style>
.x3col {float: left; margin: none; border: none; padding: none; width: 33%;}
</style>
</head>
<body>
<ul>
<li>
<p>Here is the list:</p>
<div class="x3col">
<ol>
<li>one</li>
<li>two</li>
<li>three</li>
</ol>
</div>
<div class="x3col">
<ol>
<li>four</li>
<li>five</li>
<li>six</li>
<li>seven</li>
</ol>
</div>
<div class="x3col">
<ol>
<li>eight</li>
<li>nine</li>
<li>ten</li>
<li>eleven</li>
</ol>
</div>
</li>
<li>Here's the end of the list</li>
</ul>
<p>Here is the next line</p>
<p>And down here, it works.</p>
<div class="x3col">
<ol>
<li>one</li>
<li>two</li>
<li>three</li>
</ol>
</div>
<div class="x3col">
<ol>
<li>four</li>
<li>five</li>
<li>six</li>
<li>seven</li>
</ol>
</div>
<div class="x3col">
<ol>
<li>eight</li>
<li>nine</li>
<li>ten</li>
<li>eleven</li>
</ol>
</div>
<p>Here is the next line</p>
</body>
</html>