posted 17 years ago
Hello,
I am using the following code to get a scrollable table within a <div>. It works fine in Firefox but does not work at all in IE7. In IE7, all the values are displayed continuously without a scrollbar.
Can anyone suggest how to fix this problem?
<style type="">
div.scrollWrapper{
height:200px;
overflow:auto;
}
</style>
</head>
<body>
<div class="scrollWrapper" align="center">
<table class="scrollable">
<thead>
<tr>
<th>First Name</th>
<th>Last Name</th>
<th>Email</th>
</tr>
</thead>
<tbody>
<tr>
<td>Joe1</td>
<td>Scott1</td>
<td>Email1</td>
</tr>
<tr>
<td>Joe2</td>
<td>Scott2</td>
<td>Email2</td>
</tr>
<tr>
<td>Joe3</td>
<td>Scott3</td>
<td>Email3</td>
</tr>
</tbody>
</table>
</div>