Web Design Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignWeb Design Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old May 23rd, 2004, 05:16 AM
gertcuppens's Avatar
gertcuppens gertcuppens is offline
Gert Cuppens
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Location: Antwerpen - Belgium
Posts: 478 gertcuppens User rank is Sergeant (500 - 2000 Reputation Level)gertcuppens User rank is Sergeant (500 - 2000 Reputation Level)gertcuppens User rank is Sergeant (500 - 2000 Reputation Level)gertcuppens User rank is Sergeant (500 - 2000 Reputation Level)gertcuppens User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 2 Days 11 h 42 m 3 sec
Reputation Power: 21
scrollable DIV with heading

I'd like to have a scrollable DIV where the headings always remain on the same place, no matter how deep you would scroll in the list.

If I write
<DIV id=scroll1 style="BORDER:1px ; OVERFLOW: auto; WIDTH: 200px; HEIGHT: 100px; position: absolute; top:100; left:100;">

<table>
<tr>
<th>etappe</th>
<th>leiding</th>
<th>BO</th>
</tr>


<tr>
<td>1</td>
<td>11</td>
<td>1011</td>
</tr>
<tr>
<td>2</td>
<td>12</td>
<td>1012</td>
</tr>
<tr>
<td>3</td>
<td>13</td>
<td>1013</td>
</tr>
<tr>
<td>4</td>
<td>14</td>
<td>1014</td>
</tr>
<tr>
<td>5</td>
<td>15</td>
<td>1015</td>
</tr>

</table>
</DIV>

I get the scrollable area, but the headings don't show when scrolling down.

But on the other hand I loose the scrollable area when I write
<table>
<tr>
<th>etappe</th>
<th>leiding</th>
<th>BO</th>
</tr>

<DIV id=scroll1 style="BORDER:1px ; OVERFLOW: auto; WIDTH: 200px; HEIGHT: 100px; position: absolute; top:100; left:100;">
<tr>
<td>1</td>
<td>11</td>
<td>1011</td>
</tr>
<tr>
<td>2</td>
<td>12</td>
<td>1012</td>
</tr>
<tr>
<td>3</td>
<td>13</td>
<td>1013</td>
</tr>
<tr>
<td>4</td>
<td>14</td>
<td>1014</td>
</tr>
<tr>
<td>5</td>
<td>15</td>
<td>1015</td>
</tr>

</DIV>

Can anyone help me out ?
IFrames isn't an option, since I'd like to get this scrollable area inside my JSP's and iFrames give extra problems when submitting the FORM elements to the servlet.

Reply With Quote
  #2  
Old June 17th, 2004, 07:40 PM
Meksilon Meksilon is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 1 Meksilon User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
There's 2 ways to do it, one would be by definging the width of each col - the other is just by cheating, as so:
Code:
<table style="position: absolute; top:80; left:100;">
<tr align=left>
<th>etappe</th>
<th>leiding</th>
<th>BO</th>
</tr>
</table>
<DIV id=scroll1 style="BORDER:1px ; OVERFLOW: auto; WIDTH: 200px; HEIGHT: 100px; position: absolute; top:100; left:100;">

<table style="position:absolute;top:-28">
<tr align=left>
<th>etappe</th>
<th>leiding</th>
<th>BO</th>
</tr>
<tr>
<td>1</td>
<td>11</td>
<td>1011</td>
</tr>
<tr>
<td>2</td>
<td>12</td>
<td>1012</td>
</tr>
<tr>
<td>3</td>
<td>13</td>
<td>1013</td>
</tr>
<tr>
<td>4</td>
<td>14</td>
<td>1014</td>
</tr>
<tr>
<td>5</td>
<td>15</td>
<td>1015</td>
</tr>

</table>
</DIV>

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignWeb Design Help > scrollable DIV with heading


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway