Link to home
Start Free TrialLog in
Avatar of FairyBusiness
FairyBusinessFlag for United States of America

asked on

Why is my #content div not appearing on top of my img?

Hi, I gave my #content div a z-index of 500 and my image with the class of .wood an z-index of -1 so that the content would slide up and appear to overlap it.  But its not working. . any suggestions?

http://gowiththemaster.com/tleithoff/index2.php

Also, the .wood img is appearing under my #nav div so I'm not sure why it won't appear under the #content div too. . .
Avatar of gavsmith
gavsmith
Flag of United Kingdom of Great Britain and Northern Ireland image

z-index is its position on the z axis, as in on top of each other. content would be on top of .wood if they overlapped in terms of x/y.

content is using relative positioning so try adding:

top:-20px;

to your content class.

your nav is over already because your using float:right which takes it out of the flow of the rest of the page.

hope that helps
I was looking at the wrong nav:

#navigation if floating over the main image because of float:right;

#nav is over .wood correctly because its using position:absolute;

sorry for the confusion
ASKER CERTIFIED SOLUTION
Avatar of jonahzona
jonahzona
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of FairyBusiness

ASKER

Thanks!
Didn't even get an assist because I didn't get the PX right!! lol I was showing how to move it up, I'm sure you could have worked out 'how much by', by yourself...