Connecting Tech Pros Worldwide Forums | Help | Site Map

scrolling

pradeepjain's Avatar
Needs Regular Fix
 
Join Date: Jul 2007
Location: India
Posts: 407
#1: Aug 29 '08
Hii guys,
I am using a 3 column structure say left right and content area in center between them.Now i want a scroll bar which on scrolling the content in the content area must get scrolled how to do this.


Thanks,
Pradeep

Dormilich's Avatar
Moderator
 
Join Date: Aug 2008
Location: Leipzig, Germany
Posts: 3,652
#2: Aug 29 '08

re: scrolling


do you want to scroll horizontally or vertically?
I would not recommend horizontal scrolling because I (as an user) find it annoying.
the latter I would leave to the browser (why putting scrollbars when there's nothing to scroll).

If you want the left and right column stay where they are, there's a nice CSS property called "position: fixed" (though it is not working in IE, there you have to use javascript to hold them in place)
Expert
 
Join Date: Aug 2008
Posts: 397
#3: Aug 29 '08

re: scrolling


Assuming you mean you want a "scroll-box" to vertically scroll the content in the center column named content:

Expand|Select|Wrap|Line Numbers
  1. #content {
  2. height: assign a height; overflow: scroll;
  3. }
  4.  
Reply