Skip to content Skip to sidebar Skip to footer

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:


Post a Comment for "What Is The Best Way To Crop An Image In HTML?"