Re:Avoid 100vh on Mobile Web
by jaxn on Monday September 30, 2019 @06:30AM
(#21113501)
Set top: 0; bottom: 0
[ Parent
| on HN ]
Maybe we are talking about 2 different things. I want to stretch the image to the bottom of the visible area not to the bottom of the site. If the height of the parent is 100% and that parent is the site itself and it's 5000px high (because the rest of the content made it that high) then setting the bottom to 0px will stretch the image's height to 5000px.
> you want to set the height of a div (i.e. an image) so it covers the whole landing area (what the user sees when the site loads)
I believe “what the user sees when the site loads” is often referred to as “above-the-fold”. “Landing area” may be interpreted to mean the whole landing page. Perhaps repliers were confused by the phrasing.