Forum Moderators: not2easy
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Testing High Resolution Sprites</title>
<style type="text/css">
button::-moz-focus-inner, input::-moz-focus-inner {
border:0 none;
padding:0;
}
input.sprite {
background-color:transparent;
background-image:url(/path/to/high-res/sprite);
background-position:0 0;
background-repeat:no-repeat;
background-size:96px auto;
width:96px;
height:27px;
border:0 none;
cursor:pointer;
}
input.sprite:hover {
background-position:0 -27px;
}
</style>
</head>
<body>
<form accept-charset="utf-8" method="post" action="">
<p><input name="sprite" type="submit" value="" alt="Submit Button" class="sprite"> (high resolution)</p>
</form>
</body>
</html>
image-rendering: crisp-edges;
input.sprite {
background-color:transparent;
background-image:url(/path/to/high-res/sprite);
background-position:0 -1px;
background-repeat:no-repeat;
background-size:96px auto;
width:96px;
height:27px;
border:0 none;
cursor:pointer;
}
input.sprite:hover {
background-position:0 -30px;
}