-3

I've used the following CSS and I wonder if I can change the background to use some gif i.e. instead of background:white use the following gif as background http://media.giphy.com/media/8OUdE03f3Nauc/giphy_s.gif

#carousel figure {

    display: block;
    position: absolute;
    width: 150px;
    height: 111px;
    left: 10px;
    top: 10px;
    background: white;
    overflow: hidden;
    border: solid 1px black;

}

ive tried with background: url('http://media.giphy.com/media/8OUdE03f3Nauc/giphy_s.gif');

and also this

background-image:'http://media.giphy.com/media/8OUdE03f3Nauc/giphy_s.gif' which is not working...

2 Answers2

0

You should be able to do the following:

#carousel figure {

display: block;
position: absolute;
width: 150px;
height: 111px;
left: 10px;
top: 10px;
background: url('http://media.giphy.com/media/8OUdE03f3Nauc/giphy_s.gif');
overflow: hidden;
border: solid 1px black;

}

evilscary
  • 2,097
  • 5
  • 23
  • 33
0

Try like this: Its working Demo

#carousel  {       
    background: white url("http://media.giphy.com/media/8OUdE03f3Nauc/giphy_s.gif") no-repeat center; 
// Added your gif background along with your code */
}
G.L.P
  • 7,119
  • 5
  • 25
  • 41