PDA

View Full Version : Scrollbar question...



KittyKattz
11 Nov 2007, 12:21 AM
Okay, I can't find the correct code to make a table with a vertical scrollbar. I need it for this page [and others]:

http://helpmemeetjoejonas.com/index/?page_id=6/

I have WordPress installed onto my website. I've tried many codes already but I haven't been able to find the right one. Can someone please help?

Wickham
11 Nov 2007, 01:00 AM
Tables expand in height automatically if you don't state a height, so you don't get a scrollbar, the page just gets longer.

If you want a vertical scrollbar, it's best to use div boxes with a height and overflow: scroll, using CSS:-

http://www.wickham43.supanet.com/tutorial/scrollingdivs.html

You can still use a table for the general layout. Find out which cell is the one you want to scroll, give it a height and put a div inside the cell with the same height and overflow: scroll.

The div will sit inside the table cell and scroll.