Prevent Address-Bar hiding in mobile Browsers Prevent Address-Bar hiding in mobile Browsers google-chrome google-chrome

Prevent Address-Bar hiding in mobile Browsers


This is the way I have achieved it:

html {  background-color: red;  overflow: hidden;  width: 100%;}body {  height: 100%;  position: fixed;  /* prevent overscroll bounce*/  background-color: lightgreen;  overflow-y: scroll;  -webkit-overflow-scrolling: touch;  /* iOS velocity scrolling */}


Use this style code on your page.Now your chrome url bar will not hide.It'll stop scrolling.

<style type="text/css">  html, body {margin: 0; height: 100%; overflow: hidden}</style>


if someone still has this problem with the hiding address bar, this is how its worked for me.

 html, body {    height: 100%; } body {    position: fixed;    margin: 0;    padding: 0;    border: 0;    outline: 0;    background: 0 0;        -webkit-overflow-scrolling: touch;    overflow-x: auto;    overflow-y: scroll; } .background {    position: fixed;    background-image: url('...');    background-repeat: no-repeat;    background-size: cover;    background-attachment: fixed;    height: 100%;    width: 100%;    margin: 0;    overflow: hidden; }

I try a lot of similar code, but android chrome was killing me. Only this worked for me. When you have navigation at the bottom of the page it's major problem with that auto-hide bar.