Bug #17407
closedget rid of clear.gif with space
0%
Description
when using spaceBefore / spaceAfter in CE there is no chance to get rid of clear.gif
As this is in tslib_content:
if ($spaceBefore || $spaceAfter) {$content=$this->wrapSpace($content, $spaceBefore.'|'.$spaceAfter);}
it will wrapped with the clear.gif any time.
So there is no alternative way like Joey presents in newsgroup:
tt_content.stdWrap {
### spaceBefore ###
prepend = TEXT
prepend.field = spaceBefore
prepend.wrap = <div style="clear:both;height:|px;margin:0;font-size:0px;">
prepend.if.isTrue.field = spaceBefore
- spaceAfter ###
append = TEXT
append.field = spaceAfter
append.wrap = <div style="clear:both;height:|px;margin:0;font-size:0px;">
append.if.isTrue.field = spaceAfter
- content.space ###
outerWrap.cObject = COA
outerWrap.cObject {
10 = TEXT
10 {
outerWrap =<div|>
value = {$content.space}
split {
token = |
cObjNum = 1
1.current = 1
1.noTrimWrap = | |px 0px|
}
noTrimWrap = | style="margin:|;"|
}
20 = TEXT
20.value = |
}
}
This snippet works, but clear.gif is present also.
(issue imported from #M5835)
Files
Updated by Susanne Moog almost 16 years ago
Patch adds stdWrap and the useDiv property to space. Patch to #19635 changes rendering of css_styled_content to add spaceBefore and after without the space function but with margins instead, so this is fixed, too.
Updated by Oliver Hader almost 16 years ago
Committed to SVN Trunk (rev. 4561) by Thorsten Kahler
Committed Follow-up to SVN Trunk (rev. 4578)