I've build a simple web page which includes a background image in the body tag and the background-size is set to cover in css file.When i resize my chrome window the original image gets displayed adjacent to same image and so on just like a collage.How can i solve this issue?
Asked
Active
Viewed 3,147 times
1 Answers
5
Add following CSS code to your stylesheet
background-repeat: no-repeat;

Rohan Rao
- 2,505
- 3
- 19
- 39

Tasawar Hussain
- 92
- 5
-
Thanks a lot for the lightning fast reply.It worked fine for me. – xufor Jun 21 '18 at 12:42
-
Well i think it has to be "background-repeat: no-repeat", but anyways it wasn't that hard to figure. – xufor Jun 21 '18 at 12:58
-
I just changed if someone else will come here. – Tasawar Hussain Jun 21 '18 at 13:27