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

qt - Using float or double for own QML classes -

Create Outlook appointment via C# .Net -

ios - Swift Array Resetting Itself -