By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,625 Members | 2,261 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,625 IT Pros & Developers. It's quick & easy.

problem with the scroll bar for <tbody> section with IE

P: 18
Hi, i have one table with <thead>,<tbody> and <tfooter> i have applying the overflow property for <tbody> section in firefox its working fine.but in IE6 the <thead> section is coming in the <tbody> section can anyone give me solution

here is the code
[html]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<style type="text/css">
div.scrollWrapper{
float:left;
overflow:visible !important;
overflow:scroll;
height:150px;
}
table.scrollable{
width:450px;
margin-right:0 !important;
margin-right:16px;
border-collapse:separate;
}
table.scrollable th{
border-top:1px solid #999999;
border-left:1px solid #999999;
border-bottom:1px solid #999999;
padding:5px;
background:#f7f7f7;
position: relative;
}
table.scrollable tbody{
height:100px;
overflow:scroll;
}
table.scrollable tr{
height:0px;
}
table.scrollable td{
border-left:1px solid #999999;
border-bottom:1px solid #999999;
text-align:center;
}


</style>
</head>

<body>
<div class="scrollWrapper">
<table class="scrollable">
<thead>
<tr>
<th>Numbers</th>
<th>Letters</th>
<th>Symbols</th>
</tr>
</thead>
<tfoot>
<tr>
<th>total numbers</th>
<th>total letters</th>
<th>total symbols</th>
</tr>
</tfoot>
<tbody>
<tr>
<td>111</td>
<td>aaa</td>
<td>@@@</td>
</tr>
<tr>
<td>222</td>
<td>bbb</td>
<td>###</td>
</tr>
<tr>
<td>222</td>
<td>bbb</td>
<td>###</td>
</tr>
<tr>
<td>222</td>
<td>bbb</td>
<td>###</td>
</tr>
<tr>
<td>222</td>
<td>bbb</td>
<td>###</td>
</tr>
<tr>
<td>222</td>
<td>bbb</td>
<td>###</td>
</tr>
<tr>
<td>222</td>
<td>bbb</td>
<td>###</td>
</tr>

<tr>
<td>999</td>
<td>iii</td>
<td>???</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>
[/html]

Thanx in Advance
Feb 14 '08 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.