Jump to content

[SOLVED] div height the height of its contents


dadamssg

Recommended Posts

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?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.