Friday, December 2, 2011

CSS3 enhancements to the background-image property with example


There are also some changes to the existing "background-image" property, now it allows us to set multiple background images.

As this is allowing multiple images as the background-image, if the upper one is transparent, we can also see the second image which is there behind.

Internet Explorer 9, Firefox 4, Chrome, Safari 5 and Opera support these new background properties.

Example for background-image property..


div
{
background-image:url(upper_img.gif),url(back_img.gif);
}



Stumble
Delicious
Technorati
Twitter

0 Comments:

Post a Comment