/    Sign up×
Community /Pin to ProfileBookmark

z-index on iPhone

I my Javascript code I’m changing the zindex of a DIV from -1 to 999.

It works on my desktop perfectly, that on normal sreen and on responsive sizes and iphone sizes in dev tools.

It works on my phone but the z-index isn’t. I can see it sitting behind other elements. Do I need to do something different?

[code]
document.getElementById(“myCourseList”).style.zIndex = “9999”;
[/code]

to post a comment
CSS

1 Comments(s)

Copy linkTweet thisAlerts:
@kiwisauthorMay 21.2021 — I've added this to the element.

Which shows, but if I click something the element behind is being clicked not the element on top
<i>
</i>-webkit-transform: translate3d(0,0,1px);
transform: translate3d(0,0,1px);
×

Success!

Help @kiwis spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 4.25,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...