|
| |
|
|
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.
|
|
|
|
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.
|
|
|
|
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>
|
|
|
|
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
|
|
|
|
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>
|
|
|
|
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.
|
|
|
|
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...
|
|
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
|
|
|