Bug #21843
closed
css_styled_content 4.3 and image borders
Added by Christian Clemens almost 15 years ago.
Updated about 6 years ago.
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
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.
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.
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.
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.
its not fixed in 4.3.1 ...
Attached a patch. The patch needs the fix from #13677 to be applied previously.
Committed to svn,
4_3 rev 7228
trunk rev 7229
I may just be doing something incredibly wrong/stupid, but this issue is apparently still here in 4.5.2.
- Status changed from Resolved to Closed
Also available in: Atom
PDF