I am building a webpage where I don't use pixels in width and height. I use only percentages in order that the page fits with any device.
One of the results of such approach is that the zoom of browser doesn't affect the size of my divs (what I like very much).
Problem:
For performance, I want to use a sprite for my buttons. How can I make the sprite don't change with zoom-in/out?
The code I am using is:
<div class="add_article">
<a class="new_article_trigger" ></a>
</div>
.add_article
{
height:100%;
width:5%;
float:left;
}
.new_article_trigger
{
background: url('../images/sprite.png') no-repeat;
height:100%;
width:100%;
float:left;
background-position: 0 -70px;
}
Your help is appreciated.