M.O.S. Studios Posted June 18, 2009 Share Posted June 18, 2009 here is the problem, <div class='left'> and <div class='right'> are placed next to each other within <div class='center'> <div class='right'> is the content and the height varies from page to page i want the length of <div class='left'> to always match <div class='right'> any one have any ideas? the css .center { width:900px; background-color: #FFFFFF; text-align: left; vertical-align: top; border: 1px solid #000000; } .left{ float: left; width: 20%; background-color: #ffffff; } .right{ float: right; width: 80%; background-color: #ffffff; text-align: left; vertical-align: top; } the html <div class='center'> <div class='left'><div> <div class='right'></div> </div> Thanks in advance Link to comment https://forums.phpfreaks.com/topic/162810-solved-how-to-make-div-the-full-height-of-the-screen/ Share on other sites More sharing options...
ldougherty Posted June 18, 2009 Share Posted June 18, 2009 Set the left and right class to a particular pixel or percentage? I know you can set the div to be the entire page height just by saying height:100% Link to comment https://forums.phpfreaks.com/topic/162810-solved-how-to-make-div-the-full-height-of-the-screen/#findComment-859221 Share on other sites More sharing options...
M.O.S. Studios Posted June 18, 2009 Author Share Posted June 18, 2009 that didn't work, i figured it out. css .center { width:900px; background-color: #FFFFFF; text-align: left; vertical-align: top; border: 1px solid #000000; } .left{ float: left; width: 100%; background-color: #ffffff; } .right{ float: right; width: 80%; background-color: #ffffff; text-align: left; vertical-align: top; } html <div class='center'> <div class='left'> <div class='right'></div> </div> </div> Link to comment https://forums.phpfreaks.com/topic/162810-solved-how-to-make-div-the-full-height-of-the-screen/#findComment-859228 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.