0

I'm currently working on a site which needs to be presented well on iOS devices, primarily iPads. Everything works fine apart from anything using a sprite as a background image. The height/width is precise and works in every browser, but with iOS version 4.3.2 and below I get the following:

Here is the CSS for those two elements:

#masthead > a {
  float: left;
  display: block;
  margin: 23px 80px 20px 5px;
  padding: 0;
  width: 235px;
  height: 20px;
  background: url(../../img/sprite.png) 0 0 no-repeat;
}

Here's a screenshot:

And this is the sprite sheet:

BoltClock
  • 700,868
  • 160
  • 1,392
  • 1,356

2 Answers2

0

It looks like it could be an overflow issue.

Try adding:

overflow: hidden;

Is there a live URL that we could have a look at?

peduarte
  • 1,667
  • 3
  • 16
  • 24
0

Look like image bleeding. You should leave some empty space between the images in your sprite.

See also https://stackoverflow.com/a/646981/567986

Community
  • 1
  • 1
Gerben
  • 16,747
  • 6
  • 37
  • 56
  • That's perfect, thank you very much! I didn't realise there was a problem with zooming on the iPad and stuff. It makes a lot of sense. –  Dec 06 '11 at 09:15
  • You have the same problem in desktop browsers if you zoom. But most people don't zoom on desktop, as opposed to tablets. – Gerben Dec 06 '11 at 12:24