[TYPO3] CSS Styled Content -problem with calculated width of csc-textpic-imagewrap

Giannis Economou gecon at di.uoa.gr
Mon Jul 9 10:16:39 CEST 2007


we are using CSC on a site and we've got a content element with 16
images on a page.
Images are placed on 3 columns with "no-rows" checked (their placement
looks better this way).
There is problem with the calculated width (totalwidth) of the image
block as it is produced by TYPO3 in the html.

TYPO3 writes the following html for this block ("centered" positioning
of images in a text w/image element):

<div class="csc-textpic-imagewrap" style="width: 470px;">
<div class="csc-textpic-imagecolumn" style="width: 175px;"> .... </div>
<div class="csc-textpic-imagecolumn" style="width: 185px;"> .... </div>
<div class="csc-textpic-imagecolumn" style="width: 185px;"> .... </div>

This way the 3rd column wraps below the first 2 columns in all browsers.
If you sum: 175px + 185px + 185px = 545px (and not 470px)!
If I set manually the width of csc-textpic-imagewrap to 545px,
everything is showing right.
Is this a bug? Shouldn't csc-textpic-imagewrap width be calculated to
545px from CSC and not 470px?
For your information, I've set styles.content.imgtext.maxW to 550 and
styles.content.imgtext.linkWrap.width to 550.

Best regards,
Giannis Economou

More information about the TYPO3-english mailing list