Forum Moderators: not2easy
position: relative; on the img selector sorts this out, but how? is it just an unexplainable quirk? You also need to put in
display:block; on the img selector which I also don’t understand. Thanks
Erdy.
had to re-write the whole code...
if this is the only element in the flow you can also use the position: relative and give it negative offsets instead of negative margins.
about the display: block for the image tag - it comes in handy when you understand that IE render images as text, and leaves some space at the bottom for the "big" letters (q, g etc'). when giving the element the display: block; property you turn the image tag into a block type element, thus aborting IE's abuse of the image tag.
i hope this helps,
yuval