Project

General

Profile

Actions

Bug #16106

closed

CSS Styled Content TextPic with image on the right

Added by Michael Hitzler over 18 years ago. Updated about 14 years ago.

Status:
Closed
Priority:
Should have
Category:
Content Rendering
Target version:
-
Start date:
2006-04-29
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Using the css styled image textpic content element in T3 4.0. produces a CSS problem with Firefox. In IE everything seems to be fine.

If you choose the Option "in Text, Left" the problem occurs. In Firefox it doesn't take care of the image margin to the right. So what happens is that the text uses the image margin to the right until the text gets to the end of the image and then it start too much left. So the sampe screenshoot. I guess this might be due to a margin-left for the text element which has exaclty the image-size without the image margin in its calculation.

(issue imported from #M3381)


Files

t3_css_bug.gif (13.5 KB) t3_css_bug.gif Administrator Admin, 2006-04-29 23:00

Related issues 1 (0 open1 closed)

Is duplicate of TYPO3 Core - Bug #15989: Alignment of text in Text w/ images and "nowrap" is wrong (FF)ClosedErnesto Baschny2006-04-05

Actions
Actions #1

Updated by Ernesto Baschny over 18 years ago

Michael, could you provide us with some more information, please?

1) how does your CSS look like?
2) do you have put the CSS from csi directly in your CSS file or are using the CSS generated by css_styled_content itself (be it in the HTML-file or externalized to typo3temp/*.css)?
2) what constants do you have set for the "imgtext" settings?
3) any change made to the TypoScript from tt_content.*?

Actions #2

Updated by Michael Hitzler over 18 years ago

Hi Ernesto,

to be honest, I just used it as is, which means no additional imgtext settings, no additional CSS and no TS tt_content or css_styled_content changes?

Aren't you able to reproduce this?

Just set a new clean installation where I just use css_styled_content and
page = PAGE
page.10 < styles.content.get
for showing content. So no changes at all.

Hope that helps.

Thanks for taking care of that!
Michael

Actions #3

Updated by Franz Koch over 18 years ago

looks like a duplicate of http://bugs.typo3.org/view.php?id=3138 to me. I had the same problem with RC3.

Have a look the the template of csc - especially on the layout settings for the images. Objects 25 and 26 should use '{register:rowwidthwithtextmargin}'. If you upgraded from an RC-Version or use own settings then this might be the solution.

Actions #4

Updated by Michael Hitzler over 18 years ago

Hi there,

actually I am using the final Typo4.0 version, but I will have a look if this might fix my problem. But in fact it seems like it is the same problem.

Best Regards
Michael

Actions #5

Updated by Michael Hitzler over 18 years ago

Ok, I did some testing now and it seems that this in fact is the problem but as soon as I use {register:rowwidthwithtextmargin} instead of the originally {register:rowwidth} I get a regular textwrap around the image as a result as it seems there is now value in the {register:rowwidthwithtextmargin} variable.

Any ideas how to fix this or how to get a proper value for that?

Actions #6

Updated by Ulrich Fischer over 18 years ago

Yes, you hav to patch:
typo3_src-4.0rc3/typo3/sysext/css_styled_content/pi1/class.tx_cssstyledcontent_pi1.php as it is done with css_styled_content-imgtext-4.0-rc3_v1.diff

// How much space will the image-block occupy?
$imageBlockWidth = max($imageRowsFinalWidths)+ $colspacing*($colCount-1) + $colCount*$border*($borderSpace+$borderThickness)*2;
$GLOBALS['TSFE']->register['rowwidth'] = $imageBlockWidth;
+ $GLOBALS['TSFE']->register['rowwidthwithtextmargin'] = $imageBlockWidth + $textMargin;

// noRows is in fact just one ROW, with the amount of columns specified, where the images are placed in.
// noCols is just one COLUMN, each images placed side by side on each row
Actions #7

Updated by Ernesto Baschny over 18 years ago

This is in fact a duplicate of #3138. The mentioned patch unfortunately hasn't been incorporated in 4.0 (so register:rowwidthwithtextmargin isn't available without patching).

So please continue discussion or further comments in #3138.

Actions

Also available in: Atom PDF