Re: Inconsistent position:relative behaviour

On 2/12/11 8:17 AM, Markus Ernst wrote:
> If a container element with position:relative contains a child element with position:static and a margin, and some other children with position:absolute, then the reference point for the positioning moves vertically (but not horizontally) with the margin of the static element. Furthermore, the background of the container is vertically cropped to the margin of the child element. Strange enough: this issue disappears, when adding a border to the container element!

You're just seeing margin collapsing here, right?


Received on Saturday, 12 February 2011 15:36:38 UTC