chanchelkumar Posted October 16, 2007 Share Posted October 16, 2007 HI friends, Am working with two divs, say one container and other littlebox, The container is the big one and the littlebox is inside the conatiner... The problem is the littlebox can drag to any size... Now the container have only one fixed height... so that the littlebox cannot drag to the height of the container... I want to grow the container height as long as the littlebox height... How could i get from here?? Quote Link to comment Share on other sites More sharing options...
ToonMariner Posted October 16, 2007 Share Posted October 16, 2007 don't give the container a fixed height would be the first step... Quote Link to comment Share on other sites More sharing options...
chanchelkumar Posted October 16, 2007 Author Share Posted October 16, 2007 by giving no height results the container to a small one and the littlebox fallen outside the container.... Quote Link to comment Share on other sites More sharing options...
ToonMariner Posted October 16, 2007 Share Posted October 16, 2007 put a clear inside the container div <div id="container"> <div id="littlebox"> </div> <div class="clearboth"> </div> </div> in your css add .clearboth { clear: both; } Quote Link to comment Share on other sites More sharing options...
chanchelkumar Posted October 17, 2007 Author Share Posted October 17, 2007 Thanks, I tried this one but no change..... Thanks for your help.. I think you get my situation, any more information u need please ask me... i want to drag the parent div ie container to a desired height or the height will increase automatically with the littlebox height.. 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.