Click here to Skip to main content
15,892,927 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I am working in web application, in that i need to show one div infront of media player object, it is working in ie but not in chrome, anybody help me in this issue..
Posted

1 solution

In they style attribute of the div, set its z-index higher than the div that is below it. Have a look at the link below:

http://www.w3schools.com/cssref/pr_pos_z-index.asp[^]
 
Share this answer
 
Comments
Member 8169176 29-Mar-12 5:38am    
I have tried that things, but not enough, i need to show one div infront of media player object
DominicZA 29-Mar-12 5:40am    
Post the code that is causing the issue
Member 8169176 29-Mar-12 5:58am    
document.getElementById("divImage").innerHTML = " <img src='" + id.src + "' style='width:100%;height:100%;zIndex:100000' />";
document.getElementById("divImage").style.position = "absolute";
document.getElementById("divImage").style.zIndex = 10000000;
document.getElementById("divScreenPlaceHolder").style.zIndex = 10000;
document.getElementById("ScreenMediaPlayer").style.zIndex = 1000;



In this i need to show divImage infront of ScreenMediaPlayer(media player object) inside divScreenPlaceHolder..

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900