<div> height property is not working in IE8

Hi Experts,

The height property of <div> tag is not working in IE8 where as the same code works fine in IE6 and IE7.

Please see the #document css class in attached code:
Please suggest to solve this problem.

code:

<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd”>

&lt;html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang=""&gt;

<head>
<meta http-equiv=“Content-type” content=“text/html;charset=UTF-8” />
<title>

&lt;/title&gt;

&lt;style type="text/css"&gt;

@media screen {
body.order
{height:100%; margin:0px; color:#000000; background:#FFFFFF; width:100%; vertical-align: top;}
}

@media screen {
#document {width:100%; height:15%; overflow:auto; overflow-x:hidden; border-top:0px; margin-top: 0px; padding: 0px; }
}

.document-header {width:100%; margin: 0px; margin-left: 0px; padding: 0px; text-align:left; color:#000000; font-family:Arial, Helvetica, sans-serif; font-size:10px; }

.header-basic, .header-itemdefault, .header-additional, .header-docflow
{margin: 0px; padding: 0px; width: 100%;}

.header-basic table.layout {margin: 0px; padding: 0px; width: 100%}
.header-basic table.layout td.col1 {margin: 0px; padding: 0px; vertical-align: top;}
.header-basic table.layout td.col2 {margin: 0px; padding: 0px; vertical-align: top; text-align: right;float:right;}

.header-general {margin: 1ex 0 0 0; padding: 0px;}
.header-general td {margin: 0px; padding: 0px;}
.header-general .identifier {text-align: left; width: 11em; vertical-align:middle; width:140px; word-wrap: normal; border-collapse: collapse; }
.header-general .identifier-multiline {width:11em; text-align:left; vertical-align:top;}
.header-general .value {padding-left: 1px; vertical-align:middle;}
.header-general img {border: 0px; width:16px; height:16px; vertical-align: -6%} /* for icons after select-boxes /
.header-general .img-1 {width:16px; height:16px; vertical-align: bottom;} /
for icons after input fields /
.header-general .img-2 {width:16px; height:16px; margin-top: -3px; margin-bottom: -10px; vertical-align: -25%} /
for icons after normal text */

.price-info {width: 25em; border-collapse:collapse; margin-top: 6px;}
.price-info .separator {height:0px; border-top:1px solid #000000;padding:0px;}
.price-info .identifier {width: 11em; text-align:left; vertical-align:middle; }
.price-info .identifier-1 {width: 11em; text-align:left; vertical-align:top; }
.price-info .value {text-align:right; padding-left:2px; vertical-align:top; background-color: #CCCCCC;}
.price-info .value-1 {text-align:left; padding-left:2px; vertical-align:top; }
.price-info td {margin-top:0px; border:0px; padding:2px;}

.document-items {width:100%; margin-top:5px;}

.itemlist {width:100%; border:1px solid #CDCDCD; border-collapse:collapse;
margin-left:0px; margin-top:15px; padding:0px; color:#000000; font-family:Arial, Helvetica, sans-serif; font-size:10px;}
.itemlist th {background:#CCCCCC; border:1px solid #FFFFFF; text-align: center;
padding:3px 6px 6px 6px}
.itemlist td {border-style:solid; border-color:#CCCCCC; border-right:1px; border-left:0px;
border-bottom:0px; border-top:0px; vertical-align:middle; padding:3px; margin:0px;}
.itemlist img {width:51px; height:20px; border:0px}

&lt;/style&gt;

</head>

&lt;body class="order"&gt;

&lt;div id="document"&gt; &lt;%-- level: sub1 --%&gt;

&lt;div class="document-header"&gt; &lt;%-- level: sub2 --%&gt;
    
    &lt;div class="header-basic"&gt;  &lt;%-- level: sub3 --%&gt; 
    &lt;table class="layout" border="0"&gt;
        &lt;tr&gt;
            &lt;td class="col1"&gt;
                      
                &lt;table class="header-general" summary="" border="0"&gt;
                    &lt;tr&gt;
                        &lt;td class="identifier"&gt;
                            &lt;label for="customerNumber"&gt; Your Reference&lt;/label&gt;
                        &lt;/td&gt;
                        &lt;td class="value"&gt;   Some reference
                        &lt;/td&gt;
                    &lt;/tr&gt;
                    &lt;tr&gt;
                        &lt;td class="identifier"&gt;
                            &lt;label for="poNumber"&gt;Your Description&lt;/label&gt;
                        &lt;/td&gt;
                        &lt;td class="value"&gt;
                            Some description
                        &lt;/td&gt;
                    &lt;/tr&gt;

                    &lt;tr&gt;
                        &lt;td class="identifier"&gt;
                                &lt;label for="headerDescription"&gt; Account number&lt;/label&gt;
                        &lt;/td&gt;
                        &lt;td&gt;
                                      111212
                        &lt;/td&gt;
                    &lt;/tr&gt;    
                    &lt;tr&gt;
                        &lt;td class="identifier"&gt;Account Name&lt;/td&gt;
                        &lt;td class="value"&gt;
                            Account some name
                        &lt;/td&gt;
                    &lt;/tr&gt;
      
                &lt;/table&gt;
                
            &lt;/td&gt;        
        
            &lt;td class="col2"&gt;              
                &lt;table class="price-info" summary="" border="0"&gt;
                    &lt;tr&gt;
                        &lt;td class="identifier" scope="row"&gt;Total Netprice&lt;/td&gt;
                        &lt;td class="value" &gt;10000
                        &lt;/td&gt;
                    &lt;/tr&gt;
                    &lt;tr&gt;
                        &lt;td class="identifier" scope="row"&gt;Freight&lt;/td&gt;
                        &lt;td class="value"&gt;10000&lt;/td&gt;
                    &lt;/tr&gt;
                    &lt;tr&gt;
                        &lt;td class="identifier" scope="row"&gt;Taxes&lt;/td&gt;
                        &lt;td class="value"&gt;100&lt;/td&gt;
                    &lt;/tr&gt;
                    &lt;tr&gt;
                        &lt;td colspan="2" class="separator"&gt;&lt;/td&gt;
                    &lt;/tr&gt;
                    &lt;tr&gt;
                        &lt;td class="identifier" scope="row"&gt;Total Gross price&lt;/td&gt;
                        &lt;td class="value"&gt;10100&lt;/td&gt;
                    &lt;/tr&gt;
                    
                    &lt;tr&gt;
                        &lt;td class="identifier-1" scope="row"&gt;Terms of Payment&lt;/td&gt;
                        &lt;td class="terms"&gt; 3 days &lt;/td&gt;
                    &lt;/tr&gt;
                &lt;/table&gt;
            &lt;/td&gt;
        &lt;/tr&gt;

    &lt;/table&gt; &lt;%-- class="layout"&gt; --%&gt;

    &lt;/div&gt; &lt;%-- class="header-basic"&gt; --%&gt;

    &lt;/div&gt; &lt;%-- class="document-header"&gt; --%&gt;




&lt;div class="document-items"&gt; 
   
		&lt;table class="itemlist" &gt;
		   &lt;tr&gt;
			
			  &lt;th class="item" scope="col"&gt;Number&lt;/th&gt;
			  &lt;th class="product" scope="col"&gt;Product Number&lt;/th&gt;
			  &lt;th class="qty" scope="col"&gt;Qunantity&lt;/th&gt;
		
			  &lt;th class="desc" scope="col"&gt;Product Name&lt;/th&gt;
			
				&lt;th class="ref-doc" scope="col"&gt;Contract&lt;/th&gt;
			 
				&lt;th class="qty-avail" scope="col"&gt;Available&lt;/th&gt;
				&lt;th class="date-on" scope="col"&gt;Date&lt;/th&gt;
				  
			  &lt;th class="price" scope="col"&gt;Price &lt;/td&gt;
			 	  
			  &lt;th class="delete" scope="col"&gt;DEl&lt;/th&gt;
		   &lt;/tr&gt;
            
			&lt;tr&gt;
				&lt;td&gt; 1 &lt;/td&gt;
				&lt;td&gt; Name &lt;/td&gt;
				&lt;td&gt;300  &lt;/td&gt;
				&lt;td&gt; Product name &lt;/td&gt;
				&lt;td&gt;Contract  &lt;/td&gt;
				&lt;td&gt;25  &lt;/td&gt;
				&lt;td&gt; 09/10/2010 &lt;/td&gt;
				&lt;td&gt; 100  &lt;/td&gt;
				&lt;td&gt; N &lt;/td&gt;
				
			&lt;/tr&gt;

		&lt;/table&gt;

&lt;/div&gt;   &lt;%-- class="document-items"--%&gt;

&lt;/div&gt;    &lt;%-- class="document"&gt; --%&gt;

&lt;/body&gt;

Many Thanks,
Abdul Gafar

That is quite a bit of reading. Which height for which dif or td are you talking about? By the way It’s not a good idea to mix divs with tables. Try to stay away from that