/    Sign up×
Community /Pin to ProfileBookmark

Does IE not support z-index?
My navigation (drop down) works on FF but In IE, the navigation goes behind the main content of the page.

[url]http://www.d-top.org/hellscythe/[/url]

to post a comment
CSS

3 Comments(s)

Copy linkTweet thisAlerts:
@WebJoelAug 23.2006 — What first comes to mind is the two cardinal rules of z-indexes, -that is, only IE understands indexes 'less than zero'. Second, z-indexes only work when applies to a reltively-positioned element. On Absolute-positioned they won't work.

Now, -to look at your code...

(back)

Okay: somewhere in here:
ul li a:hover { color: #7DA721; background: #000; text-decoration:underline; z-index:100;} /* Hover Styles */

li ul li a { padding: 2px 5px; z-index:100;} /* Sub Menu Styles */

li:hover ul, li.over ul { display: block; z-index:100;} /* The magic */[/QUOTE]


if we can find a comfortable place in insert a "position:relative;", you'll seize control again over these items, and then z-index will work. Even if the item by inheritance is 'absolute', a 'relatively-positioned' item inside a 'absolute; will suffice. Experiment. ?
Copy linkTweet thisAlerts:
@KravvitzAug 23.2006 — I suggest you both read this: http://annevankesteren.nl/2005/06/z-index
Copy linkTweet thisAlerts:
@WebJoelAug 23.2006 — Kewl. ? Not sure if that means my advice was wrong or inaccurate, but it sort~of confirmed what I was thinking regarding nested UL's.


I don't do much with drop-down lists, -too complicated to build and maintain, esp. after a client goes in and tries to amend something and then comes back asking for help after they've skewered my work.... (but I usually keep an archived last-build for just such an emergency, -just in case...)
×

Success!

Help @The_Little_Guy 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 5.18,
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: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

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

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...