Background | SoloLearn: Learn to code for FREE!



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.

9/8/2020 11:25:07 AM


3 Answers

New Answer


Use CSS property background-repeat : no-repeat;


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


Thanks Divya Mohan , Vadivelan