In IE6, HTML is as under:
<div id="topmenu">
<ul>
<li>num 1</li>
<li>num 2</li>
</ul>
<div id="rightItem">Hello World</div>
</div>
The CSS is as under:
#rightItem {
cursor: pointer;
float: right;
clear: none;
height: 100%;
width: 340px;
}
#topmenu {
margin: 0 auto;
text-align: left;
width: 960px;
height: 41px;
}
It is floating the itemRight to right side on the same line (first UL and then rightItem) in all browsers except IE6. In IE6, it is CLEARING and FLOATING to the right. How can I fix it for IE6?