Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Position: fixed menu not working in Android 4+

When using Android 4.1 on my Samsung Galaxy S3 and viewing my website, I'm trying to get the navigation menu on the left to stay where it is but it doesn't. Whenever I click on a link from the menu and refresh the page the page, it bounces halfway down the html page and the links fail to work. It works fine on a desktop browser.

Anyone know how to resolve this problem?

like image 350
user1924813 Avatar asked Dec 23 '12 10:12

user1924813


1 Answers

Woohoo, figured it out. Very simple actually. Just needed to add a value to top and left after setting position: fixed.

For example: position:fixed;top:0px;left:0px;

like image 67
user1924813 Avatar answered Nov 05 '22 14:11

user1924813