Just to close this issue off, I can now report that the latest
working draft of the CSS 2.1 spec has actually solved the problem
I mentioned.
Compliant browsers should now support percentages on relative
positioning of an element even when the parent's size is dependent
on the element's size.
] On Behalf Of Mike Wilson
Sent: den 29 augusti 2007 09:26
To: 'CSS-D'
Cc: 'Philippe Wittenbergh'
Subject: Re: [css-d] relative positioning inside absolute
positioned element - why not percentage for top?
Just to close this issue off, I can now report that the latest
working draft of the CSS 2.1
Hi Philippe,
I have put a new test file on
http://lahall.se/test/test-top-percentage.html
How much offset for top do you actually expect ?
Half (50%) of the DIV's height (both DIVs have the same height as the
outer DIV adapts to the inner DIV's size).
CSS 2.1, 9.3.2 Box offsets
For 'top'
[Forwarding Philippe's reply to the list]
On May 10, 2007, at 4:57 PM, Mike Wilson wrote:
Or are you saying that the height of the containing block used for
positioning will be different from the calculated size of the actual
element? This doesn't seem to be the case as the other, absolutely
On May 8, 2007, at 6:58 AM, Mike Wilson wrote:
I have a problem with relative positioning, containing block,
and percentages.
I have an absolutely positioned outer DIV, and a relatively
positioned inner DIV. My goal is to shift the inner DIV
halfway to the left and up, using percentages.
I have a problem with relative positioning, containing block,
and percentages.
I have an absolutely positioned outer DIV, and a relatively
positioned inner DIV. My goal is to shift the inner DIV
halfway to the left and up, using percentages. See code
below:
!DOCTYPE HTML PUBLIC -//W3C//DTD