I currently have a div element that displays an image as a sprite cut from a larger image. Here is the CSS code for it:
.myDiv {
background-image: url("myBiggerImage.jpg");
background-position: -51px -798px;
background-repeat: no-repeat;
background-size: auto auto;
}
The size of the div is 16x16, but I would like to increase it to 32x32 while maintaining the 16x16 piece from myBiggerImage.jpg and scaling it up by 2 times to fit the new dimensions.
What is the best way to achieve this?