¿Cómo evita que se representen elementos ocultos (desbordamiento)?

I have an absolute positioned div off the side of the page with just a bit sticking in. I have applied overflow: hidden to html and the parent div, which gets rid of the scroll bar, but people can still use the middle mouse button to move the page across.

Is there a way to prevent anything that overflows from actually being rendered on the page or simply prohibit middle mouse scrolling?

preguntado el 28 de agosto de 12 a las 08:08

1 Respuestas

maybe you need to set overwflow-x and overflow-y, like this:

.class {
   overflow-x: hidden;
   overflow-y: hidden;
}

if it's not help add some !importanta to this style.

Respondido 28 ago 12, 12:08

No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas or haz tu propia pregunta.