PDA

View Full Version : Div height problem


J_mo
09-09-2009, 03:40 PM
Hi,

Please visit:

http://www.daredevil-solutions.com/Polaire_Star/history.html

I cannot get the <div id="middle"> to automatically size to the divs that it contains....well actually I can, but only in IE. Not Chrome, Safari & Firefox.

#middle {
width:962px;
background:#222 url(images/middle_bg.png) no-repeat;
padding-top: 10px;
height:auto;
}

When set to "auto" nothing appears, I do not want to give it a px value as the height varies in each browser.

Has anyone got any suggestions?

Cheers
Phil

Corrosive
09-09-2009, 05:40 PM
Have you tried just taking the height out altogether?

domedia
09-09-2009, 08:46 PM
It will automatically adjust by default.