-
Scrolling table
Hi guys, just busy trying to make a website here and ive come over a problem... what i want is the website to stay the same size, and the center table to have a scroll bar on it so you can scroll through all of the text, rather than the page resizing, cant this be done with html? Cheers guys!
Craig
-
use a scrollable div or an iframe. divs are much better as they are W3C compliant e.g.
Code:
<div style="width: 400px; border: 1px #ff0000 solid; overflow: auto;">
<table width="700" border="1">
<tr>
<td>blah</td>
<td>blah</td>
<td>blah</td>
</tr>
<tr>
<td>blah</td>
<td>blah</td>
<td>blah</td>
</tr>
<tr>
<td>blah</td>
<td>blah</td>
<td>blah</td>
</tr>
</table>
</div>
-
EDIT:
Having a bit of trouble :(
What i want to be able to do is have three tables beside eachother (or ontop of eachother if thats possible) the back one which is spread to 100% of the page to prive screen-wide background colour, one on the left which is for pictures, next one along for navigation, then the next one after that for the scrolling text! I can can draw a picture if my description isnt very clear (i kinda confused myself writing it!)
EDIT #3: Picture of what its suppose to look like at http://www.tskcomputers.co.uk/webby.jpg
Thanks,
Craig
-
hmmm. Not to sure about that as a format. But I gave a quick stab at that layout.here
-
hmm. I just noticed two things.. a) this is my 300th post.. And b) the thing no longer makes the autoscroll bar.. I will take a look later. I am off to install Return to castle wolfenstein on my linux box ! Just to see.. just to see.
Take it easy.
-
The table needs to be wider than the div to show the scrollbar
-
Cheers for your help guys, going to give it another stab today :D