i am crweating a webpage that has a lot of pgrahics in the top section so i am using zindex to overlap some divs
my code works but on one of the divs i have had to set a negative margin as i wanted it to be within a parent div that was positions at a different level
but there seems to be an extra 75px space in content at the bottom, i am guessing this is because of the negative margin in left-content
Hi,
That was because of the relative positioned offset value top:-75px. It only moves the box visually, it still resides in it’s original location as far as other elements are concerned.
To be honest I would not use AP on the header or anywhere else with the current code you are working with. I would use floats and a static block for the header.
Basically what I am doing is nesting both columns in a div called Content. I am setting overflow:hidden on the Content div to contain the floated columns. Then I am dragging the Content div up over the header with a negative top margin instead of dragging the left column up. If I tried to drag the #left column up it would get clipped since Content is overflow:hidden. Then I am setting a 75px top margin on the #main column to push it back down.
By floating both columns I am able to bring #main first in the source order.
to the content (red box) it seems to appear the way i want it, so that the grey box appears outside of it and the redbox is positions right under the header
however this makes my wrapper only expand until the header and does not go around the content div? :injured:
this works in ie6 and ie7 but in the other browsers the content (red div) also moves up with the left-content
it doesnt allow me to move the greybox outside of the red box but still be a child of the red box and allow the red box to expand to the same height as the greybox