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: Mon, 16 Jan 2012 14:16:37 +0100
Message-Id: <81396600-4449-4D78-8B03-8D0E7BF36A6B@crissov.de>
To: "www-style@w3.org list" <www-style@w3.org>
Marat Tanalin (2012-01-13 16:48):
> 12.01.2012, 22:06, "Christoph Päper" <christoph.paeper@crissov.de>:
>>   <article>…<p>Foo</p><figure>Bar</figure>…</article>
>> 
>>   Foo    Bar
> 
> Currently, CSS has no proper ways to reorder elements.

Depending on the solution there’s no reordering required.

> Given your specific example, you may use {display: table*} with extra-div wrapping elements intended to be displayed side-by-side,

Extra markup be impossible or undesired and semantically unnecessary. Furthermore the 1-row 2-cols table would be as high as its tallest cell. Therefore it doesn’t work well for figures taller than their paragraph and for two consecutive figures.

> _if_ exact floating behavior (with text placed partially _under_ floating element) is not required.

I don’t want

  PPP FFF
  PPP FFF
  PPPPPPP

but possibly

   P1 FFF
  P1  FFF
   P2 FFF
  P2

and

   PP FF1
  PPP FF2
  PP
Received on Monday, 16 January 2012 13:17:26 GMT

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