body{ background-image:url('../images/background.jpg'); background-attachment:fixed; background-repeat: no-repeat; background-size: cover; }
That would be the best way, you could apply it to HTML, it really depends on what you prefer ...
background-image:url('../images/background.jpg');
Assuming your css file is on a different map, you do .. / to go to the map where your css folder is located, then go to the image file and select an image.
background-attachment:fixed;
When setting a background image that I personally like, I make sure that when the user scrolls, the background image retains its current position.
background-repeat: no-repeat;
When using this option, it makes the image not repeat if it is too small or just does not cover the entire background.
background-size: cover;
When you apply this, you will set the background size for the cover, in combination with no-repeat and attachment: fixed it will create a good way to style the background image
Gerwin
source share