Results 1 to 7 of 7
Oct 3, 2002, 09:16 #1
Scrolling a layer with a scrollbar ...
Oct 3, 2002, 13:49 #2
- Join Date
- Jul 2002
- Dallas, TX
- 0 Post(s)
- 0 Thread(s)
overflow: auto; // Just like a window
overflow: scroll; // Forces scrollbars, even if content is smaller than container
Take your pick.
Oct 4, 2002, 00:45 #3
So, (and I'm sorry but I haven't played with this yet) with this I can have a layer with a defined clip area, in the centre of the page, and the normal IE (for arguments sake) scrollbar will control its scrolling ... ?
If so, that's very cool!
Oct 4, 2002, 00:57 #4
Nice. Two things. Neither work in NN4 (which I don't really care about!) and my clip rectangles get screwed up in Netscape 6. Dammit! Still, works a treat in IE!
Oct 4, 2002, 02:30 #5Originally posted by greg.harvey
...my clip rectangles get screwed up in Netscape 6.
Be sure to include units, commas and spaces.
e.g... clip: rect(10px, 5px, 10px, 5px)
I use clipping regions extensively in my own folio site (lots of dhtml) and even alter the clipping region of some divs on the fly by using the DOM (W3C).
It works fine in IE5+ and Mozilla, but not in Opera (thanks to its incomplete DOM support).
Given that my site works fine in Moz, I don't see why clipping attributes would be acting up in NN6 (unless it's due to one of its many bugs).
Have you tried your page/code in Mozilla?
Oct 4, 2002, 02:37 #6
Thanks. It's commas. I did it the lazy way, and quickly made the page in Dreamweaver. Amazingly enough, Dreamweaver DOESN'T put commas in the clip rectangle coordinates! D'oh!
Rats! Seems it wasn't that. Here's my code:
position:absolute; left:175px; top:100px; width:400px; height:250px; z-index:1; overflow: auto; clip: rect(0px, 400px, 250px, 0px)
Oct 4, 2002, 02:54 #7