+ 3

How to fix the repetition of background image in css and html?

I am working on my webpage . When i use div tag as given below then the image contains slide 1 will show multiple time if i zoom out the browser and second and third image is not appearing. Please help me guys . <div class="carousel-inner" role="listbox"> <!-- Slide 1 --> <div class="carousel-item active" style = "background-image: url(img/computer.jpg);"> <div class="carousel-caption text-center"> <h1>Welcome To </h1> <h3>An Amazing World of Programming</h3> <h4>A Complete Refrance</h4> <h6>SONU KUMAR</h6> <a class="btn btn-outline-light btn-lg" href ="#course">Get Started</a> </div> </div> <!-- Slide 2 --> <div class="carousel-item" style="background-image: url(img/pexel.jpg);"> </div> <!-- Slide 3 --> <div class="carouse-item style= background-image: url(img/pexel1.jpg);> </div> </div> https://code.sololearn.com/WJ43hTpmp8Kk/?ref=app

13th Jan 2019, 4:33 AM
Sonu Kumar
Sonu Kumar - avatar
4 Réponses
+ 4
Show us your code. I mean give link to your code. Because code you give in description is not full and it is hard to understand what is actual problem.
13th Jan 2019, 4:40 AM
Raj Chhatrala
Raj Chhatrala - avatar
+ 3
Ok i am going to update my question and give you its link
13th Jan 2019, 5:36 AM
Sonu Kumar
Sonu Kumar - avatar
13th Jan 2019, 6:26 AM
Sudarshan Rai
Sudarshan Rai - avatar
+ 3
Set the background-repeat to :no-repeat; or probably you should give a link to your code
13th Jan 2019, 3:06 PM
Oscar Ofoetey Denfu