Many websites have such a thing that if you scroll all the way, you get this “bounce” effect, as if your page bounced from the top of your browser window, opening a space at the top of the window.
In the same situation, if you scroll down, you will get the exact “bounce” effect.
This bounce can look very ugly if your header and footer have a background color.
How to get rid of this effect?
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>JS Bin</title> </head> <body> <header></header> <div></div> <footer></footer> </body> </html>
CSS
header { width: 100%; background-color: tomato; height: 140px; } div { height: 1000px; } footer { width: 100%; background-color: brown; height: 140px; }
source share