Question:
I am trying to add this image https://upload.wikimedia.org/wikipedia/commons/thumb/4/40/Coffee_and_Friends_(Unsplash).jpg/2560px-Coffee_and_Friends_(Unsplash).jpg as background-image for body selector.Here’s my code
Now in place of repeated image there is white space in window, How to fill this white space with single image ?
Answer:
Just add thebackground-position
and background-attachment
properties:- background-position will set the starting position of your background image
- background-attachment (set to fixed) will prevent your background image from scrolling with the content of your page
If you have better answer, please add a comment about this, thank you!