I used once another div, with the same position and size, a greater
z-index, no content and a background-color set to transparent.
Roberto
-----------------------------
Tatham Oddie wrote:
Hi everyone,
I currently have a problem something like this:
div
{
width: 200px;
height: 100%;
overflow: hidden;
}
<div>
Lots and lots of content which we never expect to fit in the
box
and we just want to be cut off. However, we only want them
to be
able to see what would fit in the box. So, we need to stop
them
from being able to click in the box and use their scroll
wheel.
Another way they could see all the content is by selecting
what
they can see and dragging down.
</div>
What's the best way from stopping this from scrolling?
- javascript?
- a nested div which contains the content, positioned with fixed positioning
so even if they scroll the outer div nothing actually changes visually
(would this work? I haven't tested it)
- something else?
Thanks,
Tatham Oddie
Technical Director, Fuel Advance
www.fueladvance.com
******************************************************
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
******************************************************
******************************************************
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
******************************************************