W3C home > Mailing lists > Public > www-html@w3.org > February 2000

Scrolling tables without frames

From: Brendan Devers <bdevers@salmon.ltd.uk>
Date: Tue, 15 Feb 2000 11:37:16 -0500 (EST)
To: <www-html@w3.org>
Message-ID: <001601bf7804$d572b510$272ed9c2@salmon.ltd.uk>
I am trying to create a table that has a scrollable body - but without using
frames. My understanding was that I could do this using THEAD/TBODY and a
style sheet. I have included my test source that does not work - can anybody
tell me where I am going wrong?

Included html:

<html>
<head>
<style type="text/css">
.a1	{position: absolute;
	top: 200px;
	bottom: 250px;
	left: 50px;
	right: 250px;}
.a2	{overflow: scrolling;}
</style>
</head>
<body>
	<table class="a1" border=1>
		<thead>
			<tr>
				<th>Column 1</th>
				<th>Column 2</th>
			</tr>
		</thead>
		<tbody class="a2">
			<tr>
				<td>Data</td>
				<td>Data</td>
			</tr>
			<tr>
				<td>Data</td>
				<td>Data</td>
			</tr>
			<tr>
				<td>Data</td>
				<td>Data</td>
			</tr>
			<tr>
				<td>Data</td>
				<td>Data</td>
			</tr>
			<tr>
				<td>Data</td>
				<td>Data</td>
			</tr>
			<tr>
				<td>Data</td>
				<td>Data</td>
			</tr>
			<tr>
				<td>Data</td>
				<td>Data</td>
			</tr>
			<tr>
				<td>Data</td>
				<td>Data</td>
			</tr>
		</tbody>
	</table>
</body>
</html>

Thanks in advance ....
Paul
Received on Tuesday, 15 February 2000 11:41:54 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:15:42 GMT