W3C home > Mailing lists > Public > www-style@w3.org > February 2011

Re: Inconsistent position:relative behaviour

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Sat, 12 Feb 2011 10:36:04 -0500
Message-ID: <4D56A8E4.7000504@mit.edu>
To: Markus Ernst <derernst@gmx.ch>
CC: www-style list <www-style@w3.org>
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?

-Boris
Received on Saturday, 12 February 2011 15:36:38 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:37 GMT