3 replies [Last post]
zorrox02
Offline
newbie
Last seen: 17 years 12 weeks ago
Joined: 2004-09-10
Posts: 2
Points: 0

I would like to simulate a scroll bar so I can move my table vertically (up & down), but I have have no clue Crying . Can someone help me please. Thank you.

Zorro

_janim
Offline
Regular
phinland
Last seen: 17 years 26 weeks ago
phinland
Joined: 2004-06-08
Posts: 22
Points: 0

Scroll bar simulation

wrap a div around your table and set a fixed height for it. overflow:auto takes care of the scrollbar if needed.

#wrap {
   height: 300px;
   overflow: auto;
}

<div id="wrap">
<table>...</table>
</div>

Please Provide a link to your code/site. If you can't, then please at least provide the HTML & CSS together.

zorrox02
Offline
newbie
Last seen: 17 years 12 weeks ago
Joined: 2004-09-10
Posts: 2
Points: 0

Thank you

Thank you soooooooo much Janim. You have saved me a lot of headache. I have been trying to find the solution for this for 2 days but could not do it. Your code works like a charm.

zorro

Hugo
Hugo's picture
Offline
Moderator
London
Last seen: 6 years 47 weeks ago
London
Joined: 2004-06-06
Posts: 15668
Points: 2806

Scroll bar simulation

In two days did you not try googling on "scrolling divs";
page rank 1 first entry:
FAQ-creating a scrolling div area htmlite.com/faq015.php

time to find = 10secs!

Shock

There used to be an expression that went something like STFW
but I would never be so churlish as to use it.

Before you make your first post it is vital that you READ THE POSTING GUIDELINES!
----------------------------------------------------------------
Please post ALL your code - both CSS & HTML - in [code] tags
Please validate and ensure you have included a full Doctype before posting.
Why validate? Read Me