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

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -