1

I want to show search icon properly for all views - with zoom / without zoom and normal view. Problem appears when people zooms for example 110%. Icon jumps.

Fiddle: Fiddle ( try to zoom/zoom out - you will notice jumps )

HTML

<div id="outer">
  <div id="block"></div>
</div>

CSS

#outer
{
    background-color: #c0c0c0;
}

#block
{
    background-repeat: no-repeat;
    background-image: url(http://g3.acdn.lt/img/svg/icons_ptrn.svg);
    background-position: 0px 3.1%;
    width: 26px;
    height: 26px;
    display: block;
    background-repeat: no-repeat;
    padding: 0px;
    margin: 0 auto;
}

Tried:

Community
  • 1
  • 1
Roman Losev
  • 1,911
  • 19
  • 26

0 Answers0