navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

Microsoft MVP

 

Table freeze question

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> General Web Development >> Table freeze question
Page: [1]
 
chadb

 

Posts: 485
From: Kansas
Status: offline

 
Table freeze question - 5/8/2008 9:52:35   
Is it possible to freeze a table or cell. I have seen some posts about this, but havn't found anything that helps. I want the top part of my intranet site not to scroll, but I do not want to use frames. Is there a way to do this?

Thanks
Chad
rdouglass

 

Posts: 9167
From: Biddeford, ME USA
Status: offline

 
RE: Table freeze question - 5/8/2008 10:41:04   
I frequently put stuff in a div like so:

<div style="height: 200px; overflow: scroll;">
Lots of stuff here.
</div>

Works most times for me; hope it does for you.

_____________________________

Don't take you're eye off your final destination.

ASP Checkbox Function Tutorial.

(in reply to chadb)
chadb

 

Posts: 485
From: Kansas
Status: offline

 
RE: Table freeze question - 5/8/2008 13:58:25   
quote:

<div style="height: 200px; overflow: scroll;">


Well that is close, but I need to bottom section to scroll while the top section does not.

(in reply to rdouglass)
rdouglass

 

Posts: 9167
From: Biddeford, ME USA
Status: offline

 
RE: Table freeze question - 5/8/2008 14:27:22   
I knew that was coming...:)

What I do is to make 2 tables essentially; one having just the table header stuff above (and aligned with) the <div> and the second one inside the <div> having just the data.

Did that make sense? Help any?

_____________________________

Don't take you're eye off your final destination.

ASP Checkbox Function Tutorial.

(in reply to chadb)
chadb

 

Posts: 485
From: Kansas
Status: offline

 
RE: Table freeze question - 5/8/2008 14:39:34   
quote:

<div style="height: 200px; overflow: scroll;">
Lots of stuff here.
</div>


OK, I am a bit confused, here is a sample that I tried, what am I doing wrong?

<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Lots of stuff here</title>
</head>

<body>

<table border="1" width="100%" id="table1">
<tr>
<td> <div style="height: 200px; overflow: scroll;">
Lots of stuff here.
</div> </body>
</td></td>
</tr>
</table>
<table border="1" width="100%" id="table2" height="44">
<tr>
<td>
 </tr>
</table>


</html>

(in reply to rdouglass)
BobbyDouglas

 

Posts: 5432
Joined: 5/15/2003
From: Arizona
Status: offline

 
RE: Table freeze question - 5/8/2008 15:34:51   
You have your </body> tag inside your table. That should come right before your </html> tag. You also didn't close your <td>, and a couple other html errors.

You may want to put the table inside the div, as opposed to the div inside the table.

_____________________________

Arizona Web Design - Mr Bobs Web Design in Arizona
The Arizona Web Hosting Challenge

(in reply to chadb)
chadb

 

Posts: 485
From: Kansas
Status: offline

 
RE: Table freeze question - 5/8/2008 15:59:02   
OK, I changed to this, but still not working correctly. Maybe there is a way to sroll the bottom table?

<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Lots of stuff here</title>
</head>

<body>
<div style="height: 200px; overflow: scroll;">
<table border="1" width="100%" id="table1">
<tr>
<td> 
Lots of stuff here.

</td></td>
</tr>
</table>
</div>
<table border="1" width="100%" id="table2" height="44">
<tr>
<td>
<p> </tr>
</td>
</table>
</body>
</html>

(in reply to BobbyDouglas)
rdouglass

 

Posts: 9167
From: Biddeford, ME USA
Status: offline

 
RE: Table freeze question - 5/8/2008 16:50:18   
<table border="1" width="100%" id="table1"> 
<tr> 
<td>  
Table Head 1</td>
<td>  
Table Head 2</td>
</tr> 
</table> 

<div style="height: 200px; overflow: scroll;"> 

<table border="1" width="100%" id="table2">
<tr> 
<td>  
Table Cell 1a</td>
<td>  
Table Cell 1b</td>
</tr>
<tr>
<td>  
Table Cell 2a/td>
<td>  
Table Cell 2b</td>
<td>
</tr>
<tr>
Table Cell 3a</td>
<td>  
Table Cell 3b</td>
<td>  
</tr>
</table> 

</div> 


That look any better?

_____________________________

Don't take you're eye off your final destination.

ASP Checkbox Function Tutorial.

(in reply to chadb)
Mane

 

Posts: 78
Joined: 7/7/2005
Status: offline

 
RE: Table freeze question - 5/8/2008 20:08:52   
What about position:fixed? Of course this will not work in versions of certain browsers which shall remain nameless...

(in reply to rdouglass)
Page:   [1]

All Forums >> Web Development >> General Web Development >> Table freeze question
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts