question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Fix without media query

See original GitHub issue
body {
  height: 100vh;
}

should be fixed to

body {
  height: 100vh;
  height: -webkit-fill-available;
}

-webkit-fill-available is automatically ignored by browsers that don’t understand it.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:7
  • Comments:8

github_iconTop GitHub Comments

2reactions
simevidascommented, Aug 16, 2020

@kripod It renders correctly in Chrome on my simple demo page: https://output.jsbin.com/noqasek/quiet.

But there is a problem in the new Firefox. The footer is behind the URL bar:

Screenshot_20200816-204001

1reaction
simevidascommented, Aug 9, 2020

It causes issues in Chrome: https://allthingssmitty.com/2020/05/11/css-fix-for-100vh-in-mobile-webkit/#comment-4910262284

When I first load this page in Chrome on Android, the MAIN element is several screens large for some reason, and I have to scroll down to get to the footer (first screenshot). But then when I pull-to-refresh, the page renders correctly (second screenshot).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Build your Responsive website without media query
Build your Responsive website without media query · flex & flex-wrap · auto-fit & minmax · Controlling the number of items · Controlling...
Read more >
Flexible layouts without media queries - LogRocket Blog
The problem with media queries is that they don't play well with design systems, as components within said systems usually are defined with...
Read more >
Responsive Layouts, Fewer Media Queries | CSS-Tricks
Let's first take a look at some widely used methods to build responsive layouts without media queries. No surprises here — these methods...
Read more >
Responsive Layouts Without Media Queries! | by Jason Knight
Responsive Layouts Without Media Queries! A friend of mine used to joke that. HTML is already responsive. Designers are the ones screwing ...
Read more >
How to make responsive layouts without using CSS media ...
Learn the 24 patterns to solve any coding interview question without getting ... How to make responsive layouts without using media queries has...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found