|Home||Register||FAQ||Members List||Search||Today's Posts||Mark Forums Read|
|24-10-2003, 09:56||#1 (permalink)|
css is for divs
Join Date: Feb 2003
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?
|24-10-2003, 10:10||#7 (permalink)|
trouble free and loverlee
Join Date: Mar 2003
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.
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.)