[Typo3-dev] [TYPO3-content-rendering] New and improved css_styled_imgtext

Wolfgang Klinger wolfgang at stufenlos.net
Sat Sep 3 09:11:05 CEST 2005


 Hi!

 On Fri, 02 Sep 2005, Ernesto Baschny [cron IT] wrote the following:
> - The user can choose how many columns to display! This was the most
> annoying thing in the current original css_styled_imgtext. The
> "floathorizontal" field was removed, and code was added to allow images
> to wrap in the correct amount of columns.

 Thank you for that great work!

 One problem I had was that when I specified a width for the images
 ("imagewidth") and defined e.g. 5 columns the width was used for all
 images in a row, not for a single one... that's not the expected
 behaviour I think (at least for me)!

 Please think about that and change the following line accordingly
----
$defaultColumnWidth = ceil(($maxW-$colspacing*($colCount-1)-$colCount*$border*$borderThickness*2)/$colCount);
----
 
 I simply set
----
$defaultColumnWidth = $maxW;
----
 (but that doesn't count all this border stuff in)
 

 kind regards
 Wolfgang






More information about the TYPO3-dev mailing list