Saturday, April 21, 2012

Multiple Background images in CSS

Multiple images in a background of html site here is the solution. You can give multiple background images in simple code in css please check the following code.

#body_back{
  background: url(photo1.png),
        url(photo2.png),
        url(photo3.png)
  ;
  background-repeat: no-repeat,
             no-repeat,
             repeat-y;
            
  background-position: 0 0,
             60px 40px,
             right top;
  
  width: 500px; 
  height: 600px;
  border: 1px solid #2a2a2a;
}

0 comments: