How to make a background with a set of images?

Asked

Viewed 33 times

0

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

Thank you.

1 answer

3


Just 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: http://www.css3.info/preview/multiple-backgrounds/

Browser other questions tagged

You are not signed in. Login or sign up in order to post.