How to make a background with a set of images?

0

Well, my question is as follows, how can I make a div background in css, with a set of images and not just 1?

Thank you.

    
asked by anonymous 29.01.2017 / 18:02

1 answer

3

Simply insert other images and set individual positioning. See the example:

.teste{
 
  min-width:250px;
  min-height:250px;
  background:#ff0000;
  background-image:url('http://www.w3schools.com/tags/smiley.gif'),
 url('http://www.css3.info/wp-content/themes/new_css3/img/sheep.png');
 background-position: center top, left top;
   background-repeat: no-repeat;
 }
<div class="teste">
 </div>

Documentation: link

    
29.01.2017 / 19:56