I have the following two problems, but can’t find a solution for them:
The background image starts directly under the navigation, since the height is set to vh100, it is too high in height exactly by the height of the navigation. How can I correct this? Preferably a solution that also works for a navigation with a different height. The solution may well be with SCSS.
The history starts at the top, covers the navigation. But this should start at the height of the image and take exactly the height of the image. Currently it is exactly shifted by the navigation height.
Can anyone tell me the solution here? Best probably by means of SCSS and a calc function?
It works… Wow. But the heigt of the header is now 500px. I would, that the header is 100vh, that means, that the picture takes the hole brower-window height, less then the height of the navbar.
And how is the solution for a second version. Wenn the pictures in vh100 and the navigation is without background in this picture, positioned on top?
When i set the height to 100vh, then te result is this:
the bottom edge of the image is not exactly on the bottom edge of the browser window, but exactly around the height of the navbar in addition. so when i scroll down, there is still some of the image first and only then the text.