Forum Moderators: not2easy
Here's some sample, valid 4.01 strict, code that illustrates the problem. By adding and removing the class attribute "sixhundred" on the list it should become apparent.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>OL/UL Width Bug</title>
<style type="text/css">
.sixhundred
{
width: 600px;
}
</style>
</head>
<body>
<!--
in IE if the class attribute is removed the list becomes numbered again as it should be
-->
<ol class="sixhundred">
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3
<ul>
<li>Item A</li>
<li>Item B</li>
<li>Item C</li>
</ul>
</li>
<li>Item 4</li>
</ol>
</body>
</html>
Any thoughts/tips on this would be appreciated. Thanks!
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>OL/UL Width Bug</title>
<style type="text/css">
.sixhundred {
width: 600px; background-color: #faebd7;
}
</style>
</head>
<body>
<!--
in IE if the class attribute is removed the list becomes numbered again as it should be
-->
<div class="sixhundred">
<ol>
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3
<ul>
<li>Item A</li>
<li>Item B</li>
<li>Item C</li>
</ul>
</li>
<li>Item 4</li>
</ol>
</div>
</body>
</html>