The following site:
http://staging.jungledragon.com
Has a few rendering issues on the iPad using Safari, so I'm trying to fix them. There is one issue where I am stuck though. If you have an iPad, open the site in portrait mode. There are two unwanted horizontal lines appearing, a top one that crosses the tabs (Popular, Fresh, etc) and a bottom one that sits right above the lizard illustration. Both lines should not be there.
These lines do not appear on any other browser tested, including Safari on Windows. When you move that same site into landscape mode on the iPad, the top horizontal line dissapears, whilst the bottom one stays. If you zoom in a bit to the bottom line, it then dissapears too.
I've been trying out various CSS fixes to no avail and am now beginning to think this is a rendering issue of Safari, although possibly triggered by me.
Any help is greatly appreciated. It seems like a minor issue but I hate sloppiness.
There is a common issue with the device getting moisture trapped inside the screen. This can cause the display screen to produce wavy lines, or dim pixels.
If you have reduced the brightness and turned off the Auto-Brightness but still face the iPad screen has white lines, you have to turn off the 'Motion and Transparency' feature.
Most of the time, lines on your iPhone screen is the result of a hardware problem. It can occur when you drop your iPhone on a hard surface, or if your iPhone gets exposed to liquids.
If the lines appear only in a certain app, then double tap your "Home" button and swipe up across the app to quit out of the process. If the issue persists, do a hard reset by holding the "Home" and Sleep/Wake buttons simultaneously until the Apple logo shows.
The issue's have to do with the way Mobile Safari handles background images. The green line that pops up (just inside your content area) is from another element.
Try 'over sizing' your images. For instance: A image gets cut off at 100 pixel height, make that image 110 pixels high. This works for me... most of the time.
Edit: I did check the site on my iPad and I just saw that single line popping up. Also note that it disappears when you zoom in/out which tells me it's a rendering bug (not something in your css).
Oops - how did that happen?
The meta to go in the head tag to to stop zooming on the iPad:
<meta name="viewport" content="initial-scale=1, maximum-scale=1">
An alternative is to specify the size of the background. This can be done with the css selector "background-size".
If your background image is 40 pixels high, the following code will prevent horizontal lines from showing up on the iPad: { background-size: 100% 40px }
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With