Featuring a background image that's perfectly centered:
/*backgrounds and colors*/
body {
background-color: rgb(10, 20, 51);
background-image: url("https://i.pinimg.com/originals/6a/29/28/6a2928106b907101787cd87f6613bdec.gif");
background-size: cover;
background-repeat: no-repeat;
background-position: center;
}
<!DOCTYPE html>
<html>
<body>
</body>
</html>
Now without the background image being centered:
/*backgrounds and colors*/
body {
background-color: rgb(10, 20, 51);
background-image: url("https://i.pinimg.com/originals/6a/29/28/6a2928106b907101787cd87f6613bdec.gif");
background-size: cover;
background-repeat: no-repeat;
}
<!DOCTYPE html>
<html>
<body>
</body>
</html>
I'm puzzled as to why the image shifted upwards when I applied the center background-position setting?