I am designing a webpage which contains a slide show. The background of the slideshow is an image which is available in the image folder. The background image does not show in the slideshow background. I tried to override the CSS file in my machine and it showed up. However, when I uploaded the content to the server, the background image did not show up. Below is the html code and the css selector:
<div style="background:url(../images/slider-bg.png)" class="slideshow">
<div class="row">
<div class="large-12 twelve columns">
<section class="slider">
<div class="flexslider">
<ul class="slides">
<li><img src="images/slider/1.jpg"alt=""></li>
<li><img src="images/slider/2.jpg" alt=""></li>
<li><img src="images/slider/3.jpg" alt=""></li>
<li><img src="images/slider/4.jpg" alt=""></li>
<li><img src="images/slider/5.jpg" alt=""></li>
<li><img src="images/slider/6.jpg" alt=""></li>
<li><img src="images/slider/7.jpg" alt=""></li>
<li><img src="images/slider/8.jpg" alt=""></li>
<li><img src="images/slider/9.jpg" alt=""></li>
</ul>
</div>
</section>
</div>
`
And this is the CSS code:
.slideshow {
margin:0;
background:url(../images/slider-bg.png);
}
What is the cause of this problem and how to solve it? Thank you so much in advance!