css man wrote: > I have a #container div: > > #container { > border: .4em solid #cc6; > background-color: #fff; > height: 42.1em; <--must be set specific value, otherwise > collapes--> > font-size: .95em; > margin: 0 auto; > padding: 0; > position: relative; > text-align: left; > width: 775px; > voice-family: "\"}\""; > voice-family: inherit; > width: 775px; > } > > Unless I set the height to a specific value, height collapses; works fine in > IE6. > > Can someome explain what I'm doing wrong here? >
Not without seeing your page, or at least the code of what is in the container. I'm guessing the container div either contains absolutely positioned divs or floats. If it's floats, you'll need to apply a float containment method to the container div: http://css-discuss.incutio.com/?page=ClearingSpace If this isn't the problem, we'll really need to see the page. Zoe -- Zoe M. Gillenwater Design Services Manager UNC Highway Safety Research Center http://www.hsrc.unc.edu ______________________________________________________________________ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7 List wiki/FAQ -- http://css-discuss.incutio.com/ Supported by evolt.org -- http://www.evolt.org/help_support_evolt/