[TYPO3-core] RFC: Bug 5678: Missing clearer div in csc-textpic-intext-left/csc-textpic-intext-right

Martin Kutschker martin.kutschker-n0spam at no5pam-blackbox.net
Sun Jun 3 21:41:16 CEST 2007


Oliver Hader schrieb:
> This is a SVN patch request.
> 
> Problem:
> When placing two (or more) content elements of the type "text w/image"
> (with "intext-left" or "intext-right" for the image positioning)
> underneath each other and the text does not reach beneath the lower
> picture border, then the picture of the second content element is
> positioned on the side of the upper picture instead of underneath. The
> content elements are "crammed" into each other.

See also thread "still some problems with clear:both" in 
typo3.projects.content-rendering where I have also brought up this subject.

The point is all image positions use <div class="csc-textpic-clear"> 
expect the "intext" variants. Ernesto Baschny explains the reason:

--
It is because it also was also rendered like
that in the "old" table variant (table is "floated" left or right)! This
makes it possible to have short texts and alternating images left and
right without having large gaps between the text blocks. Something like
that is possible:

+-----+
| img |  Text for block #1 with img-left, ends here.
| img |                                     +-----+
| img |  Text for block #2 (img-right)      | img |
+-----+                                     | img |
Text for next block continues here and goes | img |
goes on...                                  +-----+
and on... and on... and on... and on... and on...
and on...

Of course having two img-left images will break if text is short. But
then the editor can choose in-text-nowrap...
--

Masi


More information about the TYPO3-team-core mailing list