| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
|
|
#1 (permalink) |
|
css is for divs
Join Date: Feb 2003
Location: Norwich
Posts: 4,474
|
Scrolling area
Right then, what I want to achieve is an area within a web page that can be scrolled. I don't want to use Flash or frames, I'm thinking of using layers. So I'm thinking content on a bottom layer that you can move up or down, "masked" by other layers above it. Anyone know any good examples or tutorials of this? Cheers |
|
|
|
|
|
#7 (permalink) | |
|
trouble free and loverlee
Join Date: Mar 2003
Location: YooKay
Posts: 3,100
|
Quote:
Ain't nothing to it*. Simply place your div wherever you want it to go. Give it a height (and possibly width) attribute. Set the overflow: auto;. (Don't expect Opera to play ball. It's support for auto is fubar.) Fill the div with more content than the height allows and bob's your aunty's hubby. e.g. my own site uses this simple device for the events listings section. (* you may need to do a little box model hacking to satisfy IE5/Win if your styling any of the div's content.) |
|
|
![]() |
|