When I added another jpeg to the right of the existing one and referenced it with #header2 it shifted my menu down. (I simply copied #header to #header2 in the external styles.css
Question 1: how do I reset my menu to the correct line?
Question 2: How do bring the gif to hang OVER the menu line? (I tried Z-index:99 and set the other one in the css file to 98 but that didn’t seem to matter).
Question 2: How do bring the gif to hang OVER the menu line? (I tried Z-index:99 and set the other one in the css file to 98 but that didn’t seem to matter).
Hi,
In order for z-index to work an element must be positioned as absolute, relative, or fixed. Anything other than the default of static.
I would just absolute position the second image (polychute.gif) in the header and not even nest it in a div. I would just hook an ID to it and I would hook an ID to the anchor that the first image is nested in. That way you can style each image separately without using #header img.
You will need to set position:relative on the #header to establish it as the containing block for the AP image.
Well that will work but it layers over the “contact” link and hides the anchor thus leaving the contact link unclickable.
The problem is that you can’t set a higher z-index on that contact link because it can’t climb above it’s parent’s z-index which has to be lower than the AP image.
You could slice that 2nd header image in two parts then slice the blank space out below the hose.