Jump to content

A simple (I think) box question


ahschmidt
 Share

Recommended Posts

I would like to have a box (made with divs) that always rests at the bottom of another box, no matter the height of the parent box. I would like the child box to be able to get larger as needed to accommodate more content as well, but not overlap the bottom of the parent box. I am a bit mixed up on how to do this, any thoughts?

Link to comment
Share on other sites

At the bottom inside or at the bottom outside the other box?To have it at the bottom inside, just put the code at the very end. To have it outside, put the code right after the previous box:

<div class="box1">  Some content  <div class="box2">	More content  </div></div>OR<div class="box1">  Some content</div><div class="box2">  More content</div>

Link to comment
Share on other sites

Will the height of the parent depend on the content, or will the height always be the same (introducing possible whitespace between the content and the child)?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...