How to avoid wrapping in CSS float
I have a page with 2 columns side by side (defined both by float: left). My problem is, when I scale the browser to be smaller, the right column will be dropped below the left column. how can I avoid this? and still to make them be side-by-side no matter the screen size. Thank you Make the parent container a fixed width or set the overflow to auto. For example if your two columns are 200px wide <div style="width: 400px; overflow: auto;"> <div style="float: left; width: 200px;"></div> <div style="float: left; width: 200px;"></div> </div> Alternatively if you want them to resize with the browser