padams
01-02-2009, 02:33 AM
My page is divided into several divs, a banner, a nav bar, and a content area, all inside a div called container. The banner and nav divs are of a fixed height. The content for the content div comes from a mySQL database using PHP, so the height varies depending on what page it is. There is a background colour so it looks a bit silly when the div doesn't stretch to fit the content. I've tried setting a min-height but this also looks odd when there is little content on a page.
I thought that the div would stretch automatically since the dynamic content is being rendered as HTML, but it doesn't. Have looked around a lot and can't find any solutions. Anyone have any ideas?
Thanks in advance.
I thought that the div would stretch automatically since the dynamic content is being rendered as HTML, but it doesn't. Have looked around a lot and can't find any solutions. Anyone have any ideas?
Thanks in advance.