Limit signature height via CSS

  • Thread starter Thread starter AdminAdmin is verified member.
  • Start date Start date
Admin

AdminAdmin is verified member.

Well-Known Member
Staff member
Administrator
This tiny hack will strictly limit signature height. It will take ALL things what the user have in the signature (no matter what is it ... text, image, video, code ... ) and it will crop it based on choosed value.
Original hack was made by Mazinger, but it was a bit outdated and it didn't work for IE7, so there is a newone for vB 4.x :)
Installation:
Styles & Templates -> Style Manager -> Edit Templates -> edit additional.css
add following code:
Code:
.signaturecontainer {
max-height:[COLOR="Red"][B]200[/B][/COLOR]px;
_height: expression(this.scrollHeight > [COLOR="Red"][B]200[/B][/COLOR]? "[COLOR="Red"][B]200[/B][/COLOR]px" : "auto" );
overflow:hidden;
}
Change the red number to anything you want
 

Facebook Comments

Similar threads

Admin
Replies
0
Views
1K
AdminAdmin is verified member.
Admin
Admin
Replies
0
Views
950
AdminAdmin is verified member.
Admin
Admin
Replies
0
Views
947
AdminAdmin is verified member.
Admin
Admin
Replies
0
Views
2K
AdminAdmin is verified member.
Admin
P
Replies
2
Views
3K
phuchungac
P
Admin
Replies
0
Views
3K
AdminAdmin is verified member.
Admin
Back
Top