W3C home > Mailing lists > Public > www-style@w3.org > January 2012

Re: Floating a figure next to the preceding paragraph

From: Christoph Päper <christoph.paeper@crissov.de>
Date: Tue, 17 Jan 2012 09:36:26 +0100
Message-Id: <DF7A9A1F-1CDC-4AFA-B1ED-74C7C1801BEF@crissov.de>
To: "www-style@w3.org list" <www-style@w3.org>
Rossen Atanassov (2012-01-17 04:25):
> From: Christoph Päper [mailto:christoph.paeper@crissov.de]
>>  <article>.
>>    <p>Foo</p>
>>    <figure>Bar</figure>
>>  .</article>
>> 
>>  Foo    Bar
> 
> The only requirement would be to make the <article> an absolutely positioned container ('positoin:relative').
> 
> figure {
>  wrap-flow: left; /* in this case 'both' would do as well */

The current Exclusions ED has no value called ‘left’ for ‘wrap-flow’, but ‘start’ seems to be equivalent here.

>  position: absolute;
>  top: 0px; 
>  right: 0px;
> }

However, ‘article’ may contain many ‘p’ and ‘figure’ in any number and order, of very different lengths (= heights). It seems I hadn’t made that clear enough in my initial posting, but I tried to elaborate on it in subsequent ones. 

So, like techniques using capabilities from other modules, I believe this one, too, would only work if there was a relative-postioned wrapper (pseudo) element containing the paragraph and figure in question only. Also, with absolute positioning multiple figures would not stack on the x- or, preferably, y-axis, but on the z-axis, which is not desirable. Some new kind of floating or positioning really seems the way to go here.
Received on Tuesday, 17 January 2012 08:36:55 GMT

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