Since the two inner divs will move to the left, they will be wrapped when the browser window becomes too narrow. I would suggest that you specify the width on the outer div (the one you are overflowing: hidden). This way the two inner divs can float, but they will not wrap when the browser is compressed.
<div style="overflow: hidden; width: 600px;"> <div style="float: left; overflow: hidden; white-space: nowrap"> Hello world 1 Hello world 2 Hello world 3 </div> <div style="float: left; overflow: hidden; white-space: nowrap"> OK OK OK OK OK OK OK OK </div> <div style="clear: both;"> </div> </div>
If you need more control, you may need to implement min-width hackers using expressions in IE; min-width: works in FF.
source share