Calculating browsers navigator on mobile

Eren Kara

I have 3 important div's on my page. 2 of them has a fixed height and 1 should fit the window height. I use calc(100vh - 260px); on CSS and it works completely fine on Chrome's "device toolbar". However, when I try it on my phone with Chrome, the browser doesn't extract the browsers navigation bar height from the 100vh and bottom of the third element goes under viewport. Is there a way to fix this via CSS or Javascript?

Kosh

I've already answered the very similar question here.

Long story short, use 100% instead of 100vh.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

getusermedia freezes in mobile browsers

From Dev

CSS not working in mobile browsers

From Dev

Disable jQuery on mobile browsers

From Dev

javascript in mobile web browsers

From Dev

Using browsers navigator results in JShint error

From Dev

Calculating Paint Times of Elements In All Browsers

From Dev

SVG not rendering as expected in mobile browsers

From Dev

Flexbox not working in IE or mobile browsers

From Dev

Enforcing the maxlength attribute on mobile browsers

From Dev

Appending a link in JavaScript for mobile browsers

From Dev

Make scrollbar visible in mobile browsers

From Dev

background:cover not scaling on mobile browsers

From Dev

Mobile native browsers detection script

From Dev

Appending a link in JavaScript for mobile browsers

From Dev

Input - Only numbers on mobile browsers

From Dev

htaccess doesnt work on mobile browsers

From Dev

AutoPlay Unable to Work on Mobile Browsers

From Dev

javascript function not called on mobile browsers

From Dev

background-image shows correctly on desktop browsers, not shown on mobile browsers

From Dev

Why does geolocation not work on mobile browsers?

From Dev

Which (mobile) browsers allow styling of the page title?

From Dev

Javascript / jQuery page change event on mobile browsers

From Dev

embed tag not displaying pdf file on mobile browsers

From Dev

Primefaces Menu bar not working in Mobile Browsers

From Dev

Jquery code that adds tel: only to mobile browsers

From Dev

how to display button only for mobile or tablet browsers

From Dev

Issue with fluid-fixed layout on mobile browsers

From Dev

How to blur a video efficiently on mobile browsers?

From Dev

Prevent user from copying text on mobile browsers

Related Related

HotTag

Archive