[Solved] Setting CSS margin-top so that the content does not appear on screen in any device before scroll? [closed]


I think that you are looking for the viewport height units. Give height: 100vh; to div1 and it will have the height of the viewport browser, so the div2 will be always out of the viewport. Here you have more info about css units. And here the browser support.

solved Setting CSS margin-top so that the content does not appear on screen in any device before scroll? [closed]