dadamssg Posted May 12, 2009 Share Posted May 12, 2009 i have a container div height thats set to a 500px right now...it contains a left column and right column div. i've set both those heights to 480px. I've done this just to get an idea of the layout...but now that i want to actually fill in the divs with content i don't want them to be a fixed height. how do i set the container div to be the height of the divs inside? if i just delete the height: 500px; part it disappears except for the top like 10pxs but then if i set the position to relative it will be the right height but the bottom of the div will always touch the bottom of the internet window(leaving my footer out of sight). does anyone know my problem? Quote Link to comment https://forums.phpfreaks.com/topic/157802-solved-div-height-the-height-of-its-contents/ Share on other sites More sharing options...
skippence Posted May 14, 2009 Share Posted May 14, 2009 Have you tried height: auto; ? Quote Link to comment https://forums.phpfreaks.com/topic/157802-solved-div-height-the-height-of-its-contents/#findComment-834077 Share on other sites More sharing options...
dadamssg Posted May 15, 2009 Author Share Posted May 15, 2009 hey thanks i figured it out with overflow: auto; Quote Link to comment https://forums.phpfreaks.com/topic/157802-solved-div-height-the-height-of-its-contents/#findComment-834517 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.