Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Scroll within a table

Status
Not open for further replies.

theoryofben

IS-IT--Management
Aug 25, 2001
149
US
Ok, I'm not sure if it's possible to do what I am trying to do. I have my index page divided into four sections: the side nav bar, the top nav bar, the bottom copyright notice and the center content.

I want this all to fit in one window so that everything is visible. I want the center content to have scroll bars. So when you scroll the content, the other areas stay stationary.

I know I can do this with frames, but I want to stay away from frames. Can I do this with tables? Can I fix the size of a cell and scroll within that cell?

Thanks in advance.

Ben

"Whoever fights monsters, should see to it that in the process, they do not become one."-Friedrich Nietzsche
 
You could put this in a td tag

Code:
<div id=&quot;scrollMe&quot; style=&quot;border: 1px solid black; overflow-y: scroll;overflow-x: none;width: 300px; height: 100px;&quot;></div>

Just adjust the style to your liking
 
yes you can...

<html>
<style>
.contents {
padding-left: 10px;
scrollbar-face-color: #ffffff;
scrollbar-highlight-color: #ffffff;
scrollbar-shadow-color: #ffffff;
scrollbar-3dlight-color: #999999;
scrollbar-arrow-color: #660033;
scrollbar-track-color: #cccccc;
overflow:auto;
border: 1 solid #000000;
background-color: White;
width:600; height:450;}
</style>
<body>
<table width=&quot;750&quot; border=&quot;1&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;>
<tr>
<td height=&quot;80&quot; colspan=&quot;2&quot;>Header</td>
</tr>
<tr>
<td width=&quot;150&quot; valign=&quot;top&quot;>Navigation</td>
<td valign=&quot;top&quot;><div class=&quot;contents&quot;>Contents</div></td>
</tr>
<tr>
<td height=&quot;50&quot; colspan=&quot;2&quot;>Footer</td>
</tr>
</table>
</body>
</html>


In Contents place all your favorite long contents enough for two or three pages and you'll see how the scroll bars will be there.


bungee.gif
make an impact
 
Thank you. That's exactly what I needed.

Ben

&quot;Whoever fights monsters, should see to it that in the process, they do not become one.&quot;-Friedrich Nietzsche
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top