Bug #21843
closedcss_styled_content 4.3 and image borders
0%
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
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.
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.
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.
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.
Updated by TimoF no-lastname-given almost 15 years ago
its not fixed in 4.3.1 ...
Updated by Susanne Moog over 14 years ago
Attached a patch. The patch needs the fix from #13677 to be applied previously.
Updated by Steffen Kamper over 14 years ago
Committed to svn,
4_3 rev 7228
trunk rev 7229
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.