Hi Everyone.
Here is my project for the Survey Form:
https://codepen.io/Statusunquo/pen/jObYGGX
There is a bit of code in there that fixes the background in place and allows the front part (form) to scroll up and down over it. I found it on a website that I can’t remember now.
This is the code:
html {
background: url(https://upload.wikimedia.org/wikipedia/commons/thumb/e/e7/Rembrandt_Harmensz._van_Rijn_146.jpg/800px-Rembrandt_Harmensz._van_Rijn_146.jpg) no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}
-
Can somebody maybe explain to me line by line what the code does? I can’t figure it out. I get the gist of “background: url(picturepath)” attribute. For the rest I am at a loss.
-
Why is the HTML selector used?
This is my first post on these forums. Sorry if I said/did something dumb.