html - Set the background image using css -


i write code set image may background didn't background images do? solution?

.instantqoute{      background:url('images/services/chrysanthemum.jpg');      }
<br><br>  <div class="row instantqoute" >      <div class="col-sm-12">       </div>  </div>

all else being equal, , assuming urls correct:

there no content inside div. there no explicit height set on it. therefore has computed height of 0. provides no area background painted on.

it needs height. give 1 putting content in or setting height or min-height property.


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -