What Is The Best Way To Crop An Image In HTML?
What is the best way to crop an image in HTML? It would be something like the following:
If that doesn't work, then

Solution 1:
That's called sprites, you can read this fantastic article of A List Apart.
In the end it boils down to:
#panel2b {
width:50px;
height:30px;
background: transparent url(test-3.jpg) -96px -200px no-repeat;
}
Solution 2:
You can also use a tool like this web based CSS Sprite Generator to create a larger image if you have many slices.
[Someone on my similar question led me to yours].
Post a Comment for "What Is The Best Way To Crop An Image In HTML?"