467,874 Members | 1,734 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,874 developers. It's quick & easy.

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

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
  • viewed: 1847
Share:

Post your reply

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

Similar topics

4 posts views Thread by None | last post: by
reply views Thread by Dave Mausner | last post: by
8 posts views Thread by ppcguy | last post: by
16 posts views Thread by matt | last post: by
3 posts views Thread by =?Utf-8?B?QWxoYW1icmEgRWlkb3MgS2lxdWVuZXQ=?= | last post: by
reply views Thread by jack112 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.