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

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old May 23rd, 2004, 06:38 AM
gertcuppens's Avatar
gertcuppens gertcuppens is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2004
Posts: 118 gertcuppens User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 17 h 28 m
Reputation Power: 5
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 May 23rd, 2004, 10:48 PM
stumpy's Avatar
stumpy stumpy is offline
May contain nuts.
Dev Articles Regular (2000 - 2499 posts)
 
Join Date: Aug 2002
Location: Sydney, AU
Posts: 2,058 stumpy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 8 m 57 sec
Reputation Power: 9
Send a message via ICQ to stumpy Send a message via MSN to stumpy
Don't put the headings in the DIV - put them above.
Code:
<ul>
  <li>heading1</li>
  <li>heading 2</li>
  <li>heading 3</li>
</ul>
<div>content here</div>
__________________
DevArticles Moderator
BlueSix - Web Development and Consulting

Reply With Quote
  #3  
Old May 10th, 2006, 06:04 AM
Bache Bache is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2006
Posts: 1 Bache User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 45 m 20 sec
Reputation Power: 0
Why dont u try using style sheets like this? It works.
Attached Files
File Type: txt headfix.txt (3.3 KB, 913 views)

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsWeb DesignWeb Development > 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 5 hosted by Hostway
Stay green...Green IT