How do you stop the repetition of a image | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How do you stop the repetition of a image

The image I applied to the header just keeps repeating itself and I cannot set the width of the image cause then it won't cover the page in full screen and the navigation tab will also get stuck with the same width

2nd Jul 2019, 11:37 AM
Gurkiratsingh Kohli
Gurkiratsingh Kohli - avatar
2 Answers
+ 2
It is helpful to share your code when you need help with technical issues such as explained. To prevent the image from repeating use this CSS. background-repeat: no-repeat;
3rd Jul 2019, 1:37 AM
Chris Coder
Chris Coder - avatar
0
Thanks I will share it next time 😊😊
3rd Jul 2019, 5:46 AM
Gurkiratsingh Kohli
Gurkiratsingh Kohli - avatar