• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Controling the Z-Index

 
Steve Dyke
Ranch Hand
Posts: 1621
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In my application I have several page fragments poping up for various user input. What is a good way to control the z-index so the current page fragment will appear on top of the calling page?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64959
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Set the z-index property.
 
Steve Dyke
Ranch Hand
Posts: 1621
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bear Bibeault wrote:Set the z-index property.


I realize that but is there a prefered method to keep up with the current page z-index so the called page can read this value and make sure called page's z-index is greater?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64959
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not at all sure what you mean by "called page".

Regardless, you can use jQuery (or standard DOM API in modern browsers) to get the computed value of z-index for any element.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic