I'm struggling with a website I'm creating for a school project centered around saving Skymall. Whenever I resize the browser window, the background permanently resizes as well. Here's an example of what happens:
- I open the website
- Then I resize the browser window
- Finally, when I return to full screen, the background image only covers the top part of the webpage and allows free scrolling past it.
You can see a demo here: invisonal.com/demo
Here are some snippets from my CSS:
.bg {
position: absolute;
height: 250%;
width: 100%;
z-index: 0;
}
.ibg-bg {
position: absolute;
}
#main {
vertical-align: middle;
z-index: 1;
position: relative;
}
What is causing this issue? And how should I share my code with you all? The CSS and HTML files are quite large, and I'm unsure where specifically in the file they are located. Can I upload the code to Dropbox or another platform?
Thank you!