What is the best way to solve this issue. Obviously all browsers on mobile have got a UI (address bar etc) at the top. This adds additional height to the viewport, so my website
If the element is a direct child of body, you can achieve the desired effect with:
body
html, body { height: 100%; } #screenheight { height: 100%; background-color: blue; }
Random content after screenheight element.