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> Link to comment https://forums.phpfreaks.com/topic/202342-expand-float/ 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/ Link to comment https://forums.phpfreaks.com/topic/202342-expand-float/#findComment-1060942 Share on other sites More sharing options...
The Little Guy Posted May 20, 2010 Author Share Posted May 20, 2010 Ahh, perfect! Thank You! Link to comment https://forums.phpfreaks.com/topic/202342-expand-float/#findComment-1060949 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.