I have a div that is set to overflow:hidden which is what I want; but nested a couple levels inside I have a drop down menu that is absolute positioned. Yet whenever it drops outside the parent that is overflow:hidden it hides the overflow. I understand why this is happening but I want the absolute positioned element to be able to overflow, but nothing else. Is there a way to do this?
IE has some bugs that you could probably exploit but in essence nothing should show outside the confines of that overflow container (see post#9 as this is not quite true).
You will need to re-think the design or the reason for the overflow. Why do you need the overflow:hidden?
Are you using the overflow to contain floats? If so you could use a clearfix and trigger hasLayout for IE. But as Paul noted, I’ve ran into some bugs where things such as sibling floated elements prevent the first child sibling which is AP’d from being shown, just odd bugs.
Edit: So it does seem like you’re using it for containing floats. Remove the overflow and try:
Not sure I follow exactly what you mean, I added the line you offered exactly as you typed it but did nothing, so I figured I was supposed to replace the “el” with the element that previously had the overlow:hidden which I did like this:
It should have worked but we’d need to see the html to see where you are going wrong.
I also need to clarify my statement about elements not appearing outside of containers that have overflow:hidden applied. If the element with overflow:hidden applied is not positioned then an absolutely placed child element will appear outside of the overflow:hidden div.