Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Thin gray/black lines on web page viewed with iPad

We're finding the the iPad is displaying thin grey/black lines on our site. It seems to be some form of scaling-artefact on mobile Safari. I've provided two snippets of pages below, with the contrast tweaked to highlight the issue, unfortunately because the iPad display is quite good, these lines are quite noticeable.

They seem to come and go as the page is zoomed, and look like divs/images are being scaled with rounding issues at the edges, causing the edge pixel to be blended with black.

Has anyone found a workaround or fix for this?

Thanks

Line showing with no image

Line on edge of scaled PNG

like image 981
Adam Avatar asked Jan 24 '11 10:01

Adam


People also ask

Why is there a thin black line on my iPad screen?

This is how I stopped the appearing/disappearing thin black horizontal line on iPad 14.3. Go to Settings > Accessibility > Motion > Cross-Fade Transitions. Toggle off. Hope this works for you.

Why does my iPad have a GREY line?

These shapes are caused by a Guided Access security feature that permits a user to designate areas of the screen that they want to block from being accessed. Any area on the screen where the dark grey shape appears is rendered temporarily disabled to your touch.

How do I get rid of the black lines on my iPad?

Answer: A: Begin with a forced-restart of your iPad - as this will often resolve an isolated issue: On an iPad with a Home button: Press and hold the top button and the Home button at the same time. When the Apple logo appears, release both buttons.


1 Answers

I tried a bunch of fixes to remove these grey-ish tiny lines when mobile-safari was zoomed in, and the simplest and most flexible fix I found was here:

http://www.oddodesign.com/2010/css-tip-how-to-prevent-div-seam-lines-from-appearing-in-apples-mobile-safari/

Essentially, you add

margin-bottom:-1px;

To elements that are getting phantom line borders added.

like image 177
Jared Henderson Avatar answered Nov 16 '22 02:11

Jared Henderson