Now i’ll show you how to create a div with multiple backgrounds with the new CSS3.
Browser support: Google Chrome, FireFox 3.6 and later, Opera 9.6, Safari 3.2.1
View Code CSS
#someDiv { border: 2px solid #333; background:url('images/image-1.png') top left no-repeat, url('images/image-2.png') bottom left no-repeat, url('images/image-3.png') bottom right no-repeat; padding: 10px 5px; height: inherit; width: 300px; } |
2 Comments
You could make a sample.
You could make a sample.X2