As the title says, my background image doesn't cover the entire page. I've been messing around with various settings with no luck.
Here are the links to CSS and HTML content:
Add your background inside body tag
html, body {
font-family: "Trebuchet MS", sans-serif;
margin: 50px;
background: url("clouds.png");
}
It will solve your problem.
If I am understanding correctyle, the issue is that when you scroll down, the image does not cover the rest of the page. You can fix this very easily. On your css file, just replace position: absolute
with position: fixed
.
#animatedBackground {
position: fixed;
}
The issue is div#animatedBackground is not containing the rest of the html
Put all html tags inside the div id ='animatedBackground'
<div id="animatedBackground">
// All other including div#accordion,fieldset,form
</div>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.