Click to See Complete Forum and Search --> : Enforcing the size of a table cell


purplerhian
01-12-2006, 07:44 AM
I am using tables define the layout of my website, with a single cell table to hold the main content of each page. In this cell I specify height, and would like to force the table not to exceed the height, but instead to make the table cell scrollable. Below the table is a footer bar and I woud l llike this always to be visible, so that when the user switches pages in the site the only part that appears to change is the page content int his table.

I am guessing that tables might not be the way to acheive this effect. If anyone could explain to me how I would go about doing this I would be very grateful! :)

ProWeb
01-12-2006, 07:59 AM
I would put the main content into an iframe if your wanting it scrollable.

In your table cell that holds the main content do this
<iframe scr="maincontent.htm" height=300 width=600 name="MyIFrame">

Dump all your main content into another html file, I used maincontent.htm as an example.

This way the iframe will scroll if the maincontent.htm is longer than 300px.

Heres a link to an Iframe tutorial....
http://www.htmlhelp.com/reference/html40/special/iframe.html

purplerhian
01-12-2006, 09:38 AM
Thankyou - that was exactly what I needed! :D