views:

32

answers:

2

Here's the idea: I have a div element, #content_wrapper, which encompasses three floated divs, #left_column, #nav, and #content. Here's the styles on the #content_wrapper:

#content_wrapper {
    float:left; 
    background: url("images/bg-tan.jpg") repeat-y left center; 
    position:relative;
}

However, in Internet Explorer 7 the #content_wrapper seems to steal the cursor from the child elements. Whenever I hover over the #content_wrapper, the cursor always switches to a beam and I'm unable to click on any of the links or text inside the div. Thoughts?

Update: I've tried the following fixes, none of which have worked.

  • Applying fixed width to all elements, including parent and top level children
  • Apply position: relative to all elements and then z-index
  • Using !important on all the above properties in case
  • Adding the "zoom" property to parent and child divs
  • Adding the "overflow" property to the parent div

http://www.webspecdesign.com/projects/valleywesthyvee/index.php

+1  A: 

Try

#content_wrapper {
    zoom: 1
}
fantactuka
No luck, unfortunately.
Will
@Will: Try adding `overflow:auto;` to your wrapper.
Sarfraz
Still no luck with that either. Plus, I can't do that as there are absolutely positioned elements that go outside of the wrapper.
Will
also you can try to add zoom: 1; to wrapers childs - #left_column, #nav, and #content. It could help
fantactuka
#content_wrapper > * { zoom: 1; }Still no luck.
Will
I'm not sure but seems like ie7 does not know #el > * selector, try to assign the style dirrectly
fantactuka
+1  A: 
#content_wrapper { position: relative; z-index: -1; width: 1010px; }

EDIT: You are setting the z-index of #content_wrapper to -1. This is why it's happening. Get rid of it or set it to a positive value.

meder
No, there are no PNG fixes.
Will
Updated.........
meder
Excellent! Works great, thanks.
Will