I use -webkit-border-imageto indicate my main style sprite image. A sprite image is a bunch of button images. What style attributes do I use for indexing in my main sprite image?
.red {
-webkit-border-image: url(sprite.png) 0 14 0 14;
}
The red sprite button is located at x = 0, y = 21.
What attributes do I use? If it were a background, I would use background-position. I'm not sure what to use for -webkit-border-image.
source
share