/    Sign up×
Community /Pin to ProfileBookmark

same zindex, which image on top?

I have two image objects. They both have a zindex of 2. What determines which one appears on top?

I have some code that checks to see zindex to see what image is on top, but it is sometimes wrong when both images have the same zindex. How can I truly figure out what image is on top?

Thanks,
Sam

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@mrhooFeb 18.2010 — Source code order determines the stacking order of elements with the same z-index.
Copy linkTweet thisAlerts:
@samlochnerauthorFeb 18.2010 — it all makes sense now! great!

Thanks,

Sam
×

Success!

Help @samlochner 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 6.16,
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: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

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