I'm working on a website and I have a grid of icons, where each row is a different icon and each column is a different shade. The grid of icons is stored in a .png
format, like this:
To access a specific icon I have the following in my CSS and html : <i class="icon type1 blue>...</i>
This works really well but the issue is I need to make the icons a bit smaller so I made my png 75% smaller. But now the issue is that it's showing the same icon but it's showing half of the blue icon and half the gray icon, like this:
How can I show only the blue icon at a scale of 75%? Here is the CSS code where the image (at full size is set):
.icon{
background-image: url('images/icons.png');
background-repeat: no-repeat;
width: 28px;
heigh: 28px;
display: block;
font-style: normal;
}