Bug #15919
closed
Text/Image Module - Image Center - 10px too much.
Added by Mario Wilhelm over 18 years ago.
Updated about 14 years ago.
Category:
Content Rendering
Description
In the modul image/text might be an error:
I have used the "image above" an I was wondering, why the IE dosen't display the right things. So I looked for the error, and I think I've found it.
Below you'll find the code-snipet:
<div class="csc-textpic csc-textpic-center csc-textpic-above"><div class="csc-textpic-imagewrap" style="width:445px;"><dl class="csc-textpic-image" style="width:435px;"><dt><img src="uploads/pics/abcde.jpg" width="435" height="251" border="0" alt="" /></dt><dd class="csc-textpic-caption">Captiontext</dd></dl></div></div><div class="csc-textpic-clear"></div>
You'll see, the image is 435px wide, but there is an div with inline-styles with a width of 445px. Thats 10px to much. That are the 10px, why IE isn't display the page right.
I hope you will understand my "not so good" english...
(issue imported from #M3019)
I've tested some possible solutions.
When I delete the +10px width, the IE dispays it also wrong.
I had to add something into the CSS-file: margin-left: -10px;
/* Positioning of images: /
/ Above /
/ Center (above or below) */
DIV.csc-textpic-center DIV.csc-textpic-imagewrap {
margin: 0 auto;
margin-left: -10px;
}
Now everything is OK.
Mario, this bug was corrected in the patch attached to the bug #2995. If you can, please restore the CSS to the original one from 4.0-RC2, and then apply the patch and see if the problem is solved. Thanks!
I found the problem...
Column space [styles.content.imgtext.colSpace]
Horizontal distance between images in a block in content elements of type "Image" or "Text w/Image". If you change this manually in your CSS, you need to adjust this setting acordingly
Default: 10
Here are the 10px I've looked for.
Edit: Is it possible to remove your stylesheet?
<link rel="stylesheet" type="text/css" href="typo3temp/stylesheet_633d62c80b.css" />
Where can I do this.
Also available in: Atom
PDF