Try this
body {
font-family: "Lobster",cursive;
margin: 0;
padding: 0;
text-align: center;
}
Try to add the following CSS for your footer.
position: fixed;
Position your footer relative to the viewport, which means it always stays in the same place even if the page is scrolled.
bottom: 0;
Keep the footer at bottom of viewport
width: 100%;
Make the footer large as the viewport.
footer {
position: fixed;
bottom: 0;
width: 100%;
font-size: 20px;
background: #29EE55;
color: white;
margin: -20px -23px 0px -20px;
text-align: center;
}
You can try following :-
body{
margin:0;
}
And on you footer following;
footer{
position: fixed;
bottom: 0;
width: 100;
margin:0;
}
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.