HTML body background-color shows in front of image since iOS 7

Joined
Oct 2, 2013
Messages
3
Reaction score
0
Points
1
Hello,

since the iOS 7 update one of my websites has the problem that the background-color of the body is in every other element. That leads to the problem that everywhere there is a margin or an opacity < 1 there is background-color to be seen instead of the background-image.

It works fine on iOS 6 and other systems.

Has anybody seen this problem or has an idea how to fix it?

Your help would be appreciated.
 

Raz0rEdge

Well-known member
Staff member
Moderator
Joined
Jul 17, 2009
Messages
15,745
Reaction score
2,071
Points
113
Location
MA
Your Mac's Specs
2022 Mac Studio M1 Max, 2023 M2 MBA
Please provide a link so that we can see it for ourselves..
 
OP
A
Joined
Oct 2, 2013
Messages
3
Reaction score
0
Points
1
Please provide a link so that we can see it for ourselves..

I'm sorry but i can't do that.

Further looking into it showed me that the javascript responsible for "backstretching" the background-image creates a div-element with the image-element in and both have the "z-index" = -99999.
 
OP
A
Joined
Oct 2, 2013
Messages
3
Reaction score
0
Points
1
Thanks for the interest; i found the solution:

<body style="background-color:transparent">

Though I still don't know why it happened.
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top