I am in search of a way to create a webpage that includes the following elements from top to bottom:
- Full-screen width image/background-image (maintaining aspect ratio)
- Navigation bar (aligned at the top right of the image)
- Some text
- Another full-screen image (similar to the first one)
- Footer
The challenge I am facing is if I use background-image, I have to specify the image height in pixels. However, when I use img tag, I can only make it work by using absolute positioning, which doesn't allow me to stack the divs on top of each other.
Sorry for the hastily put-together image, I hope it gives you an idea of what I am trying to achieve.