Re: Floating a figure next to the preceding paragraph

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 UTC