0

Background

In my coding output background is an only one image,but show's multiple images in background. Please anyone can correct me to get only one image on background. https://code.sololearn.com/W3P5WxVqXL25/?ref=app

8th Sep 2020, 11:25 AM
Giriraj Yalpalwar
Giriraj Yalpalwar - avatar
3 Respostas
+ 1
Use CSS property background-repeat : no-repeat;
8th Sep 2020, 11:30 AM
Vadivelan
+ 1
If your image size will be smaller than your element it will repeat horizontally and vertically . If you want that image in background it it's original size you can use body{ background-repeat:no-repeat; } as Vadivelan hads suggested. If You you want image to cover all area of that element also add body{ background-repeat:no-repeat; background-size:cover; } You should also learn about shorthand property of background https://www.w3schools.com/css/css_background_shorthand.asp
8th Sep 2020, 5:42 PM
Divya Mohan
Divya Mohan - avatar
8th Sep 2020, 5:46 PM
Giriraj Yalpalwar
Giriraj Yalpalwar - avatar