# Help With CSS Div Height

**URL:** <https://forum.kirupa.com/t/help-with-css-div-height/278871>\
**Category:** web dev\
**Created:** [January 6, 2009, 9:40pm UTC](https://forum.kirupa.com/t/help-with-css-div-height/278871 "2009-01-06T21:40:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Joax23](https://avatars.discourse-cdn.com/v4/letter/j/439d5e/32.png) [@Joax23](https://forum.kirupa.com/u/Joax23)\
**Post date:** [January 6, 2009, 9:40pm UTC](https://forum.kirupa.com/t/help-with-css-div-height/278871/1 "2009-01-06T21:40:46Z")

</div>

I was wondering if anybody could help me out. I have a container div with a 2px high bg image. Inside this container div I have a few more divs. The problem is, the bg image from the container is not expanding. If I put a paragraph tag in there it works but other divs will not expand the container divs.

Here is my css:

#container {  
width:795px;  
height:auto;  
margin:0 auto;  
background:url(images/bg\_container.png);  
}

When I put other div’s in this container div, I wanted it to expand the height of the container div.

Please help!

JT
