Help making background images

Hello , i would like to know how to make background images in using css.
My issue is that everytime i try to add a url in css , example:

background-image: url(“somepicture.com”);
The picture would either never take full size of the browser window for the background or when i try things , half the picture ends up zooming in as the background.
Would someone explain to me how to fix this and what the code did to make the background look proper. Thank you in advance
P.S. i use fixed positioning if that changes anything.

You can try
body{ background-image: url('// some url'); background-size: cover; background-position: center; }

position: fixed doesn’t work on background image. You can use background-attachment: fixed for that

Happy coding :grin:

1 Like