W3C home > Mailing lists > Public > www-style@w3.org > March 2009

Re: Why no compositional positioning?

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Mon, 16 Mar 2009 08:57:18 -0500
Message-ID: <dd0fbad0903160657x5fcf3154s72d1baef7b16b15b@mail.gmail.com>
To: Thomas Davie <tom.davie@gmail.com>
Cc: www-style@w3.org
On Mon, Mar 16, 2009 at 8:47 AM, Thomas Davie <tom.davie@gmail.com> wrote:
> Hi,
>  I have wondered for a long time, but never previously asked, why does css
> not support a compositional positioning mode which positions elements
> relative to the top left of the parent div?  This layout mode would make
> several layouts significantly easier, and allow for easier transplantation
> of elements from page to page, as layouts would continue to work everywhere.
> Is there an obvious reason for the omission that I'm missing, or has it
> simply not been thought of?

Can you be more specific about exactly what you're wanting?  It seems
like this can be accomplished solely by making the parent a
positioning ancestor (by making it position:relative, frex) and then
using absolute positioning on the child.

Received on Monday, 16 March 2009 13:57:57 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:38:25 UTC