You can use CSS3 property background-size
Here's the code to make it work in every browser that supports it
.foo {
background-image: url(bg-image.png);
-moz-background-size: 100% 100%;
-o-background-size: 100% 100%;
-webkit-background-size: 100% 100%;
background-size: 100% 100%;
-moz-border-image: url(bg-image.png) 0;
}
source
share