Project

General

Profile

Actions

Bug #21843

closed

css_styled_content 4.3 and image borders

Added by Christian Clemens almost 15 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
-
Target version:
-
Start date:
2009-12-11
Due date:
% Done:

0%

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

Description

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)


Files

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

Related issues 1 (0 open1 closed)

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

Actions
Actions #1

Updated by Valery Romanchev almost 15 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.

Actions #2

Updated by Benni Mack almost 15 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.

Actions #3

Updated by Benni Mack almost 15 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.

Actions #4

Updated by TimoF no-lastname-given almost 15 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.

Actions #5

Updated by TimoF no-lastname-given almost 15 years ago

its not fixed in 4.3.1 ...

Actions #6

Updated by Susanne Moog over 14 years ago

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

Actions #7

Updated by Steffen Kamper over 14 years ago

Committed to svn,
4_3 rev 7228
trunk rev 7229

Actions #8

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

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

Actions #9

Updated by Benni Mack about 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF