907

IE7 dropdown menu appears behind image

I have created this css3 dropdown menu that appears behind the image when I mouse over the dropdown menu, and I have tried to figure it out. But cant for the life of me. Any help is greatly appeciated you can take a look at it here.

Answer1:

Quoting from this thread

Z-index is not an absolute measurement. It is possible for an element with z-index: 1000 to be behind an element with z-index: 1 - as long as the respective elements belong to different stacking contexts.

When you specify z-index, you're specifying it relative to other elements in the same stacking context, and although the CSS spec's paragraph on Z-index says a new stacking context is only created for positioned content with a z-index other than auto (meaning your entire document should be a single stacking context), you did construct a positioned span: apparently IE interprets this as a new stacking context.

<strong>UPDATE</strong>-

Add the following css to you page

#header { position:relative; z-index: 2; } #content-wrap { position:relative; }

Answer2:

I think either of these will explain the problem and give a solution:

Recommend

  • How to sort the items within each stacking column?
  • Butterfly Chart using Highcharts
  • How to hide application context in its URL with Tomcat?
  • How to insert a c# datetime var into SQL Server
  • Calling a CUDA-enabled library in a new thread
  • CSS: Overlapping DIVs issue
  • How to correct mouse event in Highcharts
  • How to filter results with Ransack
  • select query and count based on condition
  • Rails Query to return users belongs to any cities & not belong to any cities
  • Solve apparent need for outside reference to entity inside aggregate (DDD)
  • Objective-C – access extern const with a string containing its name? [duplicate]
  • How do you keep a running instance for Google App Engine
  • my tic-tac-toe program in matlab does not work [closed]
  • jQuery - resize an elements height to match window without refreshing, on window resize
  • Selenium to click on a javascript button corresponding to a text
  • C: Incompatible pointer type initializing
  • why xml file does not aligned properly after append the string in beginning and end of the file usin
  • How to have background script and something similar to a default popup?
  • Content-Length header not returned from Pylons response
  • How to attach a node.js readable stream to a Sendgrid email?
  • Play WS (2.2.1): post/put large request
  • Listbox within Listbox and scrolling trouble in Windows Phone 7 Silverlight
  • Handling un-mapped Rest path
  • Paperclip, set path outside of rails root folder
  • How to access EntityManager inside Entity class in EJB3
  • Why HTML5 Canvas with a larger size stretch a drawn line?
  • Align navbar back button on right side
  • DotNetZip - Calculate final zip size before calling Save(stream)
  • Why doesn't :active or :focus work on text links in webkit? (safari & chrome)
  • script to move all files from one location to another location
  • vba code to select only visible cells in specific column except heading
  • When should I choose bucket sort over other sorting algorithms?
  • Weird JavaScript statement, what does it mean?
  • Warning: Can't call setState (or forceUpdate) on an unmounted component
  • Unanticipated behavior
  • Load html files in TinyMce
  • Free memory of cv::Mat loaded using FileStorage API
  • Memory offsets in inline assembly
  • Django query for large number of relationships