16 April 2004
Z-index is still killing me, so now I ignore it.
I never did fix the z-index problem I was having last week. However, I would like to thanks all the folks who commented and helped. I learnt a lot about z-index that I didn't know before. Danke! I think that might be my highest comment count so far for a post on here.
It was not because no-body could help that the problem didn't get fixed, it was because there is no help they could give. The problem (I think I have pinned it down) is that IE ignores z-index specification within position:relative element (sometimes). The List Item tag (<li> ) is set to position:relative; so that I can absolutely position the <div> inside it. This guy does a similar thing, by positioning his links relative, and spans inside absolutely.
Because IE seems to ignore the z-index in this case, it goes back to the normal way of organising the stack levels, and using the code to decide how to layer elements. Elements last in the code are rendered last, and therefore rendered above anything else. So, in my case, the links that come AFTER my Div's in the code will be rendered on top of the Div preceding them. But only in IE because Mozilla does not ignore the z-index. This can be demonstrated by checking out this little test I made earlier in both Mozilla and IE.
To overcome this problem, until I have a hack to solve it, I have moved the positioning on the Div's for IE (using the !important syntax to pick it out). I have moved the Div's so that they are positioned above the containing list item, this way they display above the text. My CSS looks a bit like this at the moment:
position:absolute; top: 14px !important; top:auto; bottom: auto !important; bottom:20px; right: 120px !important; right:0px;
- Time: 17:47
- Wubb Development
Comments ( 9 )
Eric
Argh.
Hasan
Phil Baines
the grammar nazi
as long as we`re on the spellcheck thing...
...and "famouse" in the span text
:)
Phil Baines
Hasan
I don`t use it, but...
Read the whole thread and decide if it might help...I just keep Merriam Webster Online open when I write my posts...
Dufus
the link nazi
might as well get it all out in the open...
Phil Baines
how the .... did I manage that one!
:)
Sorry, commenting has been disabled for a while. I am getting a stupid amount of comment spam, and need to find a new way of doing things.
I will not publish your email address, but I may use it to get in contact with you.
HTML tags and entities display as source; they do not render. To create a live link, simply type the URL (including http://).