Software creative always looking for a challenge

Posts Tagged: browser-compatibility

Getting Reliable z-index Cross-Browser

Javascript Code

It is not as easy as you might think to get the correct z-index of an element using a javascript call like $(element).css(‘z-index’). The problem is how browser vendors apply the z-index to an element. But, no worries I have created a jsfiddle page to demonstrate the problem and more details on how it works will follow. More…