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

RE: Scrolling tables without frames

From: Grant, John <john.grant@sage.com>
Date: Tue, 15 Feb 2000 09:26:45 -0800
Message-ID: <C5EB0B4EDB7CD31187F800508B0EB69D03DB51C0@IRVEXCH1>
To: "'bdevers@salmon.ltd.uk'" <bdevers@salmon.ltd.uk>, www-html@w3.org
I think the scroll will only work on a div.

-John

-----Original Message-----
From: Brendan Devers [mailto:bdevers@salmon.ltd.uk]
Sent: Tuesday, February 15, 2000 8:37 AM
To: www-html@w3.org
Subject: Scrolling tables without frames


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 12:29:07 GMT

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