[TYPO3-german] IMGTEXT Bildspalte mit fester Brreite (Lösung)
Ulrich Fischer
ulrich-fischer at gmx.net
Sun Jun 25 21:22:48 CEST 2006
Hallo,
bei einem bestimmten section_frame soll ich eine Bildspalte
mit einer fixen Breite realisieren. (typo3 Vers. 4)
LÖSUNG:
Bildposition "Im Text links" (umflossen), damit hat man keine
Probleme mit dem div samt inline-style definiertem Abstand.
Typscript:
Damit die Überschrift nicht oberhalb unserers Containers
landet, wird tt_content.textpic nochmals neu geschrieben.
# Cange ImgText
# stdheader IMMER im Container
if.value = 42
if.equals.field = section_frame
# *****************
# CType: textpic
# *****************
tt_content.textpic >
tt_content.textpic = COA
tt_content.textpic {
20 = < tt_content.image.20
20.text.10 = COA
20.text.10 {
10 = < lib.stdheader
10.stdWrap.dataWrap = <div class="csc-textpicHeader">|</div>
}
20.text.20 = < tt_content.text.20
20.text.wrap = <div class="fix-width"> | </div>
20.text.outerWrap = |<div class="csc-textpic-clear"></div>
}
CSS:
/* hier festen Rand nach Links eintragen */
.fix-width{
margin: 0 0 0 220px;
}
Vielleicht nützt dieser Schnipsel ja jemanden.
Schöne Grüße
Ulrich
--
http://www.sunfish.de
More information about the TYPO3-german
mailing list