Please check the below code in IE 7.0 - when you reduce the width of the browser (Internet Explorer), the col2_row1 and col2_row2 wraps to the next line and displays below col1. I need it to stay where it is and not wrap. Can someone please give me a fix for this - Thanks a lot in advance.
Reduce the width of IE slowly to see the problem !!
Code:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <style> html, body{margin:0; padding:0;} #pagewidth{min-width:700px;} #header{position:relative; height:125px; width:100%; background-color:#003366; min-width:1000px;} #maincol{background-color: #FFFFFF; float:left; display:inline; position: relative; width:100%;} #footer{ height:25px; clear:both; font-family:Tahoma, Arial, Helvetica, sans-serif; font-size:11px; font-weight:normal; padding-left:20px; padding-top:11px; color:#333333; background-color:#999999;} #row1{width:100%; min-width:1000px; clear:both;} #row2{width:100%; clear:both; min-width:1000px;} #col1_row1{width:25%; float:left; overflow:hidden; position:relative; background-color:#00FFFF; } #col2_row1{width:75%; float:left; display:inline; position: relative; background-color:#3366CC; } #col1_row2{width:25%; float:left; overflow:hidden; position:relative; background-color:#33CC66; } #col2_row2{width:75%; float:left; display:inline; position: relative; background-color:#339966; } </style> </head> <body> <div id="pagewidth" > <!-- Start of Header --> <div id="header" >Header</div> <!-- End of Header --> <!-- Start of Center Part --> <div id="wrapper" class="clearfix" > <div id="maincol" > <div id="row1"> <div id="col1_row1">Left Box 1</div> <div id="col2_row1">Main Box 1</div> </div> <div id="row2"> <div id="col1_row2">Left Box 2</div> <div id="col2_row2">Main Box 2</div> </div> </div> </div> <!-- End of Center Part --> <!-- Start of Footer --> <div id="footer" >some copyright info </div> <!-- End of Footer --> </div> </body> </html>



Reply With Quote

Bookmarks