browsernavbarheight
v0.0.4
Published
Calculates the browser navbar height. Helpfull to get real screen height on mobile devices via css variable. Declare css variable containning this value so it's possible to calc( 100vh - var(--browser-navbar-height)).
Downloads
2
Maintainers
Readme
browserNavbarHeight
Calculates the browser navbar height. Helpfull to get real screen height on mobile devices
Installation
npm install browsernavbarheight -save
Old scholl html
<script src="/path/to/browserNavbarHeight.js"></script>
New scool js
require("browsernavbarheight");
Usage in css
height: calc(100vh - var(--browser-navbar-height,0px));