Welcome Guest [Log In] [Register]
We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Multiquote (on) Multiquote (off)
Add Reply
Restrict height of signature images?
Topic Started: Jul 6 2010, 12:15 PM (611 Views)
Old Marcus
Member
[ * ]
Is it possible to restrict the height of signature images, using a little bit of JS or something? Just that some of my members are taking to having stupidly large images in their sigs.
Offline Profile Quote Post Goto Top
 
Reid-ZNS
Member Avatar
C'est un piège!
[ *  *  *  *  *  * ]
What size in px would you like to restrict signatures to?

If you have a maximum height in mind, you can use the following in your CSS:
Code:
 
td.c_sig {
max-height: 500px;
overflow: auto;
}
Which will make the maximum height for signatures 500 pixels, and if it gets any higher than that, put scrollbars in. You can change the 500 around as necessary.

Alternatively, you can request a more comprehensive code at our official resource board.
Offline Profile Quote Post Goto Top
 
Old Marcus
Member
[ * ]
I was hoping to avoid scrollbars and just have the image disappear if it gets too large, or be replaced with a message. Is this possible?
Offline Profile Quote Post Goto Top
 
Jason
Member Avatar
Member
[ *  *  *  *  * ]
Add this to the CSS -
Code:
 
td.c_sig img {
max-width:450px;
max-height:200px;
}

Change the px values to whatever maximum suits your theme and any images that are larger in either width or height to the values that you specified will be scaled accordingly.
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · ZetaBoards Support · Next Topic »
Add Reply