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?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.