Msg#: 4399571 posted 2:03 am on Dec 20, 2011 (gmt 0)
Im trying to hide part of an image under a dive, then use Jquery to slide it out from under the div.
I have two left floated divs lets all them left and right. I have an image in the left div but absolutely positined so it moves 100px into the right div. my problem is its not hiding under the right div like I want it to. I want it hidden under the right div and to slide out into the left. I tried zindex but its not working.
Msg#: 4399571 posted 2:19 am on Dec 20, 2011 (gmt 0)
z-index is the key to working with overlapping elements. And if you want elements to move, you'll need to use absolute positioning for at least one element. Post your code so someone can give you some specific advice.
Msg#: 4399571 posted 10:03 am on Dec 20, 2011 (gmt 0)
z-index can only be applied to positioned elements, so you might be able to get this to work by simply applying position:relative to your #right DIV. (Although float AND position kinda feels like a contradiction?!)