Bug #21843

css_styled_content 4.3 and image borders

Added by Christian Clemens about 11 years ago. Updated over 2 years ago.

Should have
Target version:
Start date:
Due date:
% Done:


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


After upgrading to TYPO3 4.3 I included static template ccs styled content (4.3). I have some pictures in content-elements, marked to have a border. But the borders are not displayed in frontend.

I think the relevant output CSS looks like this:
/* Border just around the image */
DIV.csc-textpic-border DIV.csc-textpic-imagewrap .csc-textpic-image IMG {
border: 1px solid #ADAFB2;
padding: 0px 0px;

DIV.csc-textpic-imagewrap { padding: 0; }
DIV.csc-textpic IMG { border: none; }

Border is set to "none" for all images in the last line. Seems that this line overwrites to line above, which sets border for images in class csc-textpic-border.
If I delete last line, borders are displayed in frontend again. Don't the reason of the last line - could it really be removed?

(issue imported from #M13011)


13011.diff (1.12 KB) 13011.diff Administrator Admin, 2010-03-27 11:49

Related issues

Related to TYPO3 Core - Feature #20438: Provide more flexible rendering for "text with image"ClosedErnesto Baschny2009-05-16


Updated by Valery Romanchev about 11 years ago

I can confirm the problem:
No borders, if you have one image.
And borders exists, if you have 2 images.

If you link "CSS Styled Content TYPO3 v4.2 (css_styled_content)" in TS - no problem.


Updated by Benni Mack about 11 years ago

yes. I can confirm this issue as well.

it seems that if you have only one image, the LI.csc-textpic-image is missing, thus the CSS rule does not apply. Will dig futrther.


Updated by Benni Mack about 11 years ago

I found out that it's related to the "simple" rendering mode. You can fix this if you edit your TypoScript constants and set

styles.content.imgtext.borderSelector = DIV.csc-textpic-border DIV.csc-textpic-imagewrap IMG

or we add a .csc-textpic-image wrap this in the TypoScript setup

tt_content.image.20.rendering.simple.oneImageStdWrap.dataWrap =

we should fix this in 4.3.1.


Updated by TimoF no-lastname-given about 11 years ago

i also figured out that when you have ONE image and an image caption, the border appears. without an image caption, there is no border.

when you have an image caption, there is a <dl class="csc-textpic-image... around the image and the CSS rule applies.
(same with the TWO and more images <li class="csc-textpic-image...)

without an image caption, no <dl class="csc-textpic-image... and no CSS rule.


Updated by TimoF no-lastname-given about 11 years ago

its not fixed in 4.3.1 ...


Updated by Susanne Moog almost 11 years ago

Attached a patch. The patch needs the fix from #13677 to be applied previously.


Updated by Steffen Kamper almost 11 years ago

Committed to svn,
4_3 rev 7228
trunk rev 7229


Updated by Bas v.d. Wiel over 9 years ago

I may just be doing something incredibly wrong/stupid, but this issue is apparently still here in 4.5.2.


Updated by Benni Mack over 2 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF