| 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: |
| Restrict height of signature images? | |
|---|---|
| Tweet Topic Started: Jul 6 2010, 12:15 PM (611 Views) | |
| Old Marcus | Jul 6 2010, 12:15 PM Post #1 |
|
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. |
![]() |
|
| Reid-ZNS | Jul 6 2010, 12:20 PM Post #2 |
![]()
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: 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. |
![]() |
|
| Old Marcus | Jul 6 2010, 01:29 PM Post #3 |
|
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? |
![]() |
|
| Jason | Jul 6 2010, 02:25 PM Post #4 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Add this to the CSS -
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. |
![]() |
|
| 1 user reading this topic (1 Guest and 0 Anonymous) | |
| « Previous Topic · ZetaBoards Support · Next Topic » |





![]](http://z1.ifrm.com/static/1/pip_r.png)




4:47 AM Jul 11