Skavenger
03-08-2007, 04:42 PM
I added this to the Aditional CSS Definitions
.signature {
height: expression(Math.min(this.clientHeight, 150) + "px");
max-height: 150px;
width: 450px;
overflow: hidden;
}
Then I edited the postbit_legacy template and change from
<if condition="$post['signature']">
<!-- sig -->
<div>
__________________<br />
$post[signature]
</div>
<!-- / sig -->
</if>
To
<if condition="$post['signature']">
<!-- sig -->
<div class="signature">
__________________<br />
$post[signature]
</div>
<!-- / sig -->
</if>
(Just added the red part...)
But I have a problem, in IE is NOT working -.-, in FF it works, in Opera I don't know =P
Is there any way to solve this problem?
I tryed this code too, it works in IE and in FF, but the width is not working...
<if condition="$post['signature']">
<!-- sig -->
<div>
__________________<br />
<div style="width:450; height:150px; overflow:hidden">$post[signature]</div>
</div>
<!-- / sig -->
</if>
Thank you
.signature {
height: expression(Math.min(this.clientHeight, 150) + "px");
max-height: 150px;
width: 450px;
overflow: hidden;
}
Then I edited the postbit_legacy template and change from
<if condition="$post['signature']">
<!-- sig -->
<div>
__________________<br />
$post[signature]
</div>
<!-- / sig -->
</if>
To
<if condition="$post['signature']">
<!-- sig -->
<div class="signature">
__________________<br />
$post[signature]
</div>
<!-- / sig -->
</if>
(Just added the red part...)
But I have a problem, in IE is NOT working -.-, in FF it works, in Opera I don't know =P
Is there any way to solve this problem?
I tryed this code too, it works in IE and in FF, but the width is not working...
<if condition="$post['signature']">
<!-- sig -->
<div>
__________________<br />
<div style="width:450; height:150px; overflow:hidden">$post[signature]</div>
</div>
<!-- / sig -->
</if>
Thank you