javascript - CSS - Android browsers scrolling too much -


so made tiny little page. www.farley.cz it's using jquery's load function switch content in div. that's whole functionality.

now, idea containing div in middle of screen. i've used negative margin method.

#mydiv {     position:relative;     top: 50%;     left: 50%;     width: 880px;     height: 476px;     margin-top: -238px;     margin-left: -440px; } 

i'm happy how looks on desktop, on andoid, behaves strangely. i'm experiencing scroll drifts (link highlight drawn outside of image), strange little jumps i'm zooming in , zooming out. ...and when flip phone horizontally, div scrolls down out of picture.

is there away fix this? or should find better method such centering?

kind regards, martin.


Comments

Popular posts from this blog

python - jinja2: TemplateSyntaxError: expected token ',', got 'string' -

Qt4: how to send QString inside a struct via QSharedMemory -

node.js - NodeJS remote terminal to Dropbear OpenWRT-Server -