The Little Guy Posted May 20, 2010 Share Posted May 20, 2010 I have two columns, column one is 250px, and I want column 2 to expand to the edge of its parent container, which is the width of the screen. How can I do this using the float property? CSS: .container{ float:left; width:100%; } .left{ float:left; width:250px; border:solid 2px #004C7C; background-color: #FFF; margin-right: 10px; } .content{ float:left; display:block; } HTML: <div class="container"> <div class="left"></div> <div class="content"></div> </div> Quote Link to comment Share on other sites More sharing options...
haku Posted May 20, 2010 Share Posted May 20, 2010 http://www.dynamicdrive.com/style/layouts/item/css-liquid-layout-21-fixed-fluid/ Quote Link to comment Share on other sites More sharing options...
The Little Guy Posted May 20, 2010 Author Share Posted May 20, 2010 Ahh, perfect! Thank You! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.