The Arcive of vBulletin Modifications Site. |
|
Limit signature height via CSS Details »»
|
|||||||||||||||||||||||||||||
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:200px;
_height: expression(this.scrollHeight > 200? "200px" : "auto" );
overflow:hidden;
}
Screenshots
Show Your Support
|
|||||||||||||||||||||||||||||
| Comments |
|
#2
|
|||
|
|||
|
reserved
|
|
#3
|
|||
|
|||
|
Just what I was looking for! Thank you!!!
|
|
#4
|
|||
|
|||
|
Worked like a charm in vB 4.x - I tried like 6 plugins from all diff versions....this was so simple
Thanks so much!! |
|
#5
|
|||
|
|||
|
Perfect!
|
|
#6
|
|||
|
|||
|
Awesome! This will be very helpful. Thanks!
|
|
#7
|
|||
|
|||
|
Is any possibility of adding a scroll bar to the signature to see if we want the rest of the signature?
Like this old hack: https://vborg.vbsupport.ru/showthrea...gnature+scroll |
|
#8
|
|||
|
|||
|
2 acast: Yes, just use
Code:
overflow:auto; |
|
#9
|
|||
|
|||
|
Quote:
|
|
#10
|
|||
|
|||
|
Thanks for this mod. I opted to use a scrollbar if the signature exceeds the permissable size and to disable the horizontal scroll. Here is the code in case it is useful to anyone else:
Code:
overflow: auto; overflow-x: hidden; |
![]() |
|
|